Answers for "smallest and largest number"

0

smallest and largest number

# Python program to find largest
# number in a list
  
# list of numbers
list1 = [10, 20, 4, 45, 99]
  
# sorting the list
list1.sort()
  
# printing the last element
print("Largest element is:", list1[-1])
Posted by: Guest on June-10-2021

Code answers related to "smallest and largest number"

Browse Popular Code Answers by Language