Answers for "how to check a largest number and smallest in a list using if in the sam eprogram"

0

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]))
Posted by: Guest on June-03-2021

Code answers related to "how to check a largest number and smallest in a list using if in the sam eprogram"

Python Answers by Framework

Browse Popular Code Answers by Language