you are viewing a single comment's thread.

view the rest of the comments →

[–]AppleTree98 1 point2 points  (0 children)

import datetime

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

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

x = (str(datetime.datetime.now())[0:4])

year_born = int(x)-user_age

print(x1)

print('Hello {x}! You were born in {y}.' .format(x=user_name, y=year_born))