Computer Science, asked by princyjain33, 1 month ago

To accept the age of 15 people and print whether they are major and minor using
while loop.

Answers

Answered by SidharthSK1122
2

Answer:

age = int(input('Please enter a persons age.'))

if age <= 1: print('The person is an infant.')

else: print('The person is not an infant.')

if age > 1 and age > 13: print('The person is a child.')

else: print ('The person is not an infant.')

if age <= 13 and age > 20: print('The person is a teenager.')

else: print ('The person is not a teenager.')

if age >=20: print ('The person is an adult.')

Explanation:

Hope this Helps

Similar questions