InterviewSolution
Saved Bookmarks
| 1. |
To accept the age of 15 people and print whether they are major and minor using while loop. |
| 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 | |