Dec-01-2017, 10:25 AM
for something to look at, here's another way this could be done:
whoami = [(65, 'an adult'), (20, 'a teenager'), (13, 'a kid'), (4, 'a toddler'), (2, 'a baby'), (999, 'an elder')] my_age = int(input('How old are you?: ')) your_title = None for age, title in whoami: if my_age >= age: break your_title = title print('You are {}'.format(your_title))