Help a noob out

Chris Angelico rosuav at gmail.com
Thu May 2 05:28:50 EDT 2019


On Thu, May 2, 2019 at 7:26 PM <felixen989 at hotmail.co.uk> wrote:
>
> Hey guys, can someone quickly explain why this piece of code doesn't work? (I'm really new to Python)
>
> birth_year = input("What year are you born? ")
> current_year = 2019
> age = current_year - birth_year
> print(age)

Have you looked at the exception message you get back? It's fairly clear.

ChrisA



More information about the Python-list mailing list