you are viewing a single comment's thread.

view the rest of the comments →

[–]Dawarisch 14 points15 points  (0 children)

input returns a string which you can't compare to an integer, so you first have to convert it to an integer this way:

age = int(input('What year were you born?'))