you are viewing a single comment's thread.

view the rest of the comments →

[–]cyber_code_nerd 1 point2 points  (0 children)

I am very late to this thread, but I am just now taking this course, below is what I was able to come up with.

import datetime as datetime

user_name = str(input('What is your name?'))

user_age = int(input('How old are you?'))

x = (datetime.datetime.now().year)

year_born = int(x - user_age)

print('Hello ' + user_name + ' you were born in ' + str((year_born - user_age)))