How to find the max and min of a list in Python

Finding the maximum and minimum of a list returns the largest and smallest number in the list, respectively. For example, the maximum of [5, 2, 7, 6, 3, 1, 9] is 9, while the minimum is 2.

Solution for How to find the max and min of a list in Python : You can use max() and min() to find the maximum and minimum of a list Call max(obj) and min(obj) with a list as obj to return the maximum and minimum of the list, respectively.


how-to-find-the-max-and-min-of-a-list-in-python