Answers for "8) )Write a Python program to get the largest and smallest number from a 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 "8) )Write a Python program to get the largest and smallest number from a list."

Python Answers by Framework

Browse Popular Code Answers by Language