Solution Exercise 12: maximum and minimum of a Python list

Exercise 12

By using the sort() method, write an algorithm in python as a function which takes a list L of numbers as a parameter and which returns the tuple (min , max) formed from the minimum and the maximum of the list.

Solution




 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 12: maximum and minimum of a Python list

Leave a Reply