python find smallest value in list
numbers = [1, 5, 2, 10, 9, 3, 5]
print(min(numbers))
python find smallest value in list
numbers = [1, 5, 2, 10, 9, 3, 5]
print(min(numbers))
find the largest and smallest numbers in a list
thislist = [677,8765,8765,876,470,754,6784,56789,7658,]
thislist.sort()
print ("The smallest number is: " + str(thislist[0]))
print ("The largest number is: " + str(thislist[-1]))
python find smallest value in list
stuff = [37, 7, 19, 29, 5, 13, 31, 17, 23, 11, 3, 2]
print(min(stuff))
# output = 2
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us