""" incomes = [100, 200, 300, 4099] def income_after_tax(income): tax_rate = 0.2 return round(income * (1 - tax_rate),2) for i in incomes: print(f'Your income after tax is {income_after_tax(i)}') answer = 'No' possible_nos = ['Nope', 'No', 'Nehh', 'Nein', 'Nvet'] if answer in possible_nos: print('NOOOOO!') record = False else: record = True """ #explanation of naming things MyPageWhereIDoSomethingWrong = 1 my_new_variable = 2 # these are both valid names in python player.payoff = 0 #these are two different entities class Person: nation = 'Germany' # these are attributes name = 'Tina' height = '164' weight = '53' def get_bmi(self): return (self.height/100) / self.weight ** 2 #very similar to dictionary ph = Person() print(ph.nation) print(ph.get_bmi()) #new classes are called with Camel cases #elements are called with nail cases