def playWithAge(): '''Simple function to tell your birthyear''' # new constant value NOW = 2018 print('Which year were you born in?') # instantiation of the problem year = input() # new variable age = NOW - int(year) # notice how maths is evaluated then printed print('You must be '+str(age-1)+' or '+str(age)) playWithAge()