min list python 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: minimum in list python
c=[4, 10, 2, 57]
print(min(c))
# 2
x = min(1, 2) #Sets the value of x to 1
li=[0,70,7,89]
min(li)
#gives the min value 0
c=[4, 10, 2, 57]
print(min(c))
# 2