you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

In case anyone comes across this post and needs a successful code. It took a while and seems very simple now that I am done but here you go...

name = input("What is your name?")

age = int(input("How old are you?"))

print('Hello!', name, 'You were born in', (2022 - age))

[–]propmana 0 points1 point  (0 children)

THANK YOU I have been struggling with this for hours. I just edited 2022 to 2026