Lab 5

Objectives: practice lists

Maximum/minimum finding

Write a function that receives as input a list of numbers and returns the maximum and minimum numbers in the list. You can return multiple values by a statement like return x,y. The calling code should be: M,m = min-max(list).

Checking if a list is sorted

Write a function called is_sorted(list) that receives a list as input and returns True if it's sorted in ascending order, and False otherwise.