You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
228 B
Python

age = input("How old are you? ")
while not age.isnumeric():
age = input("Please enter only digits. Try again. How old are you? ")
age = int(age)
print("Great, your are", age, "years old. Next year you'll be", age+1, "!")