程序代写代做代考 Programming Exercise 3-3

Programming Exercise 3-3

# Get the person’s age.
age = int(input(‘Enter age: ‘))

# Determine if the person is an infant, child,
# teenager, or adult, and display the result.
if age <= 1: print('Infant') elif age > 1 and age < 13: print('Child') elif age > 13 and age < 20: print('Teenager') else: print ('Adult')