Apr-20-2017, 03:29 AM
age = int(input("Enter your age: "))
if age <= -1:
print ("You are time traveler of age", age)
elif age >= 0 and age <= 1:
print("You are a baby of age",age)
elif age < 3:
print("You are a toddler of age", age)
elif age < 5:
print("You are an infant of age", age)
"You have 6 more years until your are a teenager!" How do I figure this part out? I need my program to tell me how many years it will take to move up to the next age group.
if age <= -1:
print ("You are time traveler of age", age)
elif age >= 0 and age <= 1:
print("You are a baby of age",age)
elif age < 3:
print("You are a toddler of age", age)
elif age < 5:
print("You are an infant of age", age)
"You have 6 more years until your are a teenager!" How do I figure this part out? I need my program to tell me how many years it will take to move up to the next age group.