python min value in list code example
Example 1: min() python
x = min(1, 2) #Sets the value of x to 1
Example 2: min in a list python
li=[0,70,7,89]
min(li)
#gives the min value 0
Example 3: python find smallest value in list
stuff = [37, 7, 19, 29, 5, 13, 31, 17, 23, 11, 3, 2]
print(min(stuff))
# output = 2