Answers for "Find the smallest and second smallest numbers from the list"

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 "Find the smallest and second smallest numbers from the list"

Python Answers by Framework

Browse Popular Code Answers by Language