# a = 1 # b = 2 # print(a+b) # # age = 50 # if age > 40: # print('You are so old') # else: # print('wow!') # print('this will be printed anyway') # # contributions = [1, 2, 4, 1, 4] # print(sum(contributions)) # for i in contributions: # print(f'Your contribution is: {i} and you payoff is {i*2}') # # print(contributions[-1]) # contributions = [1, 3, 5, 33, 44, 6, 77, 89] # new_list = [] # for i in contributions: # if i % 2==0: # new_list.append(i) # print(new_list) # contributions = [1, 3, 5, 33, 44, 6, 77, 89] # new_list = [i*2 for i in contributions if i % 2 == 0] # # print(new_list) # contributions = [1, 3, 5, 33, 44, 6, 77, 89] # new_list = [i**2 for i in contributions if i % 2 == 0] # # print(new_list) # print(sum(new_list)) # contributions = [1, 3, 5, 33, 44, 6, 77, 89] # new_list = [f'Your contribution is {i}' for i in contributions if i % 2 == 0] # # print(new_list) # # myinfo = {'name':'Phillip', # 'citizenship': 'Russian'} # # for k,v in myinfo.items(): # print(f'Your {k} is {v}') # myinfo = {'name': 'Phillip', # 'citizenship': 'Russian', # 'contributions': [1,2,3,3,], # 'wife': {'name': 'Anna'}, # 'income': 55555} # # print(myinfo.get ('income',1234)) # # # for i in incomes: # print(f'Your income after tax is {income_after_tax(i)}') answer = 'No' possible_nos = ['Nope', 'No', 'Neeeh', 'Nein', 'Nyet'] if answer in possible_nos: print('NOOOOO!') record = False else: record = True