4 lines
172 B
Python
4 lines
172 B
Python
birthyear = int(input("Enter your birth year:"))
|
|
nowyear = int(input("Enter the current year:"))
|
|
print("your age is (as of", nowyear, "):", nowyear-birthyear, "years old")
|