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

loader-image
Le prix initial était : € 11,00.Le prix actuel est : € 10,00.
Le prix initial était : € 6,00.Le prix actuel est : € 5,00.



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

Leave a Reply

Your email address will not be published. Required fields are marked *