Question: You are tasked to create a program that stores a person's age in a list called age. The program will ask first the value of

You are tasked to create a program that stores a person's age in a list called age.
The program will ask first the value of a counter. The value of the counter will tell the number of times how many persons age will be stored in the list. From the ages entered, be able to count the young and old person in the list. Age is young if it is less than or equal to 50, otherwise it is old.
Display the values stored in the list, the number of young persons and the number of old persons.
sample output
Enter a counter :3
Enter person age :45
Enter person age :56
Enter person age :67
age= [45.0, 56.0, 67.0]
Number of young: 1
Number of old: 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!