This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Orginally codded by | |
#Nurullah Tester | |
import the4 | |
from copy import deepcopy | |
inputs = [ | |
[[['muhittin topalak', 0, 10000], [['etAMiTe', 4000, 2000], [['iWeNEdiT', 800, 700], [['iCEDU', 3000, 7000]], [['uLuFUwe', 500, 900]], [['egaBiKiDog', 500, 500]], [['uLOZi', 2000, 2000]]]], [['oyESIWE', 800, 900]], [['oGaNI', 300, 400], [['isEMoy', 500, 200], [['OCeyu', 100, 700], [['IDeMO', 2000, 6000], [['ijubO', 6000, 7000]], [['OroMAMidE', 3000, 9000]], [['OmiTI', 300, 900]]]]]], [['OXotAH', 400, 600]]], 17000] , | |
[[['muhittin topalak', 0, 10000], [['OTiciLu', 6000, 6000], [['erapo', 800, 200], [['EWIReT', 3000, 1000]], [['AxavOFuYa', 6000, 8000]], [['aYuZONUzI', 6000, 6000]], [['ivubAFaqUp', 4000, 7000]]]], [['OKAnaje', 700, 900]], [['OsafULU', 4000, 8000], [['oTozuS', 1000, 5000], [['IJApAkOr', 600, 800]], [['UCuMUXihEN', 700, 200]], [['OxEJey', 800, 900]], [['iyoYunaX', 1000, 4000]]]]], 13000] , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import the4 | |
import copy | |
#includes 50 output as Yes, 50 as NO, and 100 as Possible | |
inputs= [[[['Micheal', 0, 1100], [['Evelyn', 1700, 1700]], [['Robert', 2000, 2700], [['Jacob', 1300, 2000], [['Doris', 600, 1600]], [['James', 300, 1000], [['Miriam', 1800, 2500], [['Enrique', 400, 2300], [['Stacey', 1800, 2200]]]], [['Kristan', 1900, 1300], [['Christine', 500, 2300], [['Marvin', 300, 1800]], [['Steven', 400, 500]], [['Julia', 700, 2400]]], [['David', 1100, 2300]], [['Richard', 1900, 2600], [['Emma', 1300, 1200]], [['Kevin', 900, 2500]], [['Carol', 600, 2000]], [['Deborah', 1000, 700]]], [['Michael', 2000, 600], [['Mary', 1000, 1500]], [['Theresa', 1800, 2800]], [['Jimmy', 300, 1000]]]]]], [['Dane', 900, 700]]], [['Amy', 1100, 600], [['Edyth', 1700, 1800], [['Mark', 1000, 700], [['Daniel', 1500, 2200], [['Connie', 500, 2100]]]], [['Janet', 700, 600], [['Betty', 300, 800]], [['Ruth', 500, 1700], [['John', 500, 900], [['Tanya', 500, 2300]], [['Christopher', 1800, 2100]]], [['George', 1100, 2700]], [['Dawn', 1500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_initial = "D" | |
levels = int(input("number of levels:")) + 1 | |
if(levels < 1 or levels >10): | |
print("Bad number of levels, exiting") | |
exit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_initial = "m" | |
levels = int(input("number of levels:")) + 1 | |
if(levels < 1 or levels >7): | |
print("Bad number of levels, exiting") | |
exit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("sample_prices.txt", "r") as filem: | |
lines = filem.readlines() | |
datas = [ (x.split(":")[0], int(x.split(":")[1])) for x in lines] | |
avg_price = sum([ x[1] for x in datas]) / len(datas) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("sample_prices.txt", "r") as myfile: | |
all = myfile.readlines() | |
prices = [ ] | |
for line in all: | |
l = line.split(":") | |
prices.append( (l[0], l[1] )) | |
counter = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adim = "m" | |
level_sayisi = int(input("level sayisini giriniz:")) + 1 | |
if(level_sayisi < 1 or level_sayisi >7): | |
print("geçersiz level sayisi") | |
exit() |