Question: PYTHON BASICS Make a program that asks for peoples ages. The data ends when the age -1 is entered. Print the list of all ages

PYTHON BASICS Make a program that asks for peoples ages. The data ends when the age -1 is entered. Print the list of all ages Print the list of teenagers (which might be empty) Print the youngest age Print the oldest age Print the mean age (sum of all / number of all) Print the median age (the middle one of a sorted list Make sure your program works even if they enter no data. Make sure your program works even if they enter only one age. myList.sort() will sort a list from lowest to highest.

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!