Code Challenge 1: Working with Lists, Loops, and Related Stuff

Given the following list:

ages = [19, 22, 35, 18, 19, 21, 32, 40, 23]

Find:

The minimum value in the list

The maximum value in the list

The median value of the list

The average of the list values

You can use whatever Python tools you want to answer the questions. Your code will be judged to be satisfactory if it will run on an arbitrarily long list of positive integers without modification. Looking things up on the web is encouraged.

I will review your code in class.