File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#Write a program that prompts the user to enter a series of age (number) to be inserted in a list named age.
2- The size of the list is 10. The program then , will evaluate the status of ‘child ’ or ‘adult ’ based on the user input .
3- If the age is less than or equal to 18 , the program will store it in the children list .
4- However , if the age is greater than 19 , the program will store it in the adult list .
5- The program has to display the content of the three lists .
6- The program also has to calculate and display the total number of elements in all of the lists . Name the Python file as age .py .
2+ # The size of the list is 10. The program then, will evaluate the status of ‘child’ or ‘adult’ based on the user input.
3+ # If the age is less than or equal to 18, the program will store it in the children list.
4+ # However, if the age is greater than 19, the program will store it in the adult list.
5+ # The program has to display the content of the three lists.
6+ # The program also has to calculate and display the total number of elements in all of the lists. Name the Python file as age.py.
77
88
99-
You can’t perform that action at this time.
0 commit comments