menor valor lista python 1

menor valor lista python

lista = [13, 7, 5, 4, 6, 19, 6]

menor = min(lista)
maior = max(lista)

Here is what the above code is Doing:
1. We create a list of numbers.
2. We use the min() function to find the smallest number in the list.
3. We use the max() function to find the largest number in the list.

Similar Posts