Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to find smallest number in a list

# Python program to find smallest
# number in a list
 
# list of numbers
list1 = [10, 20, 4, 45, 99]
 
# sorting the list
list1.sort()
 
# printing the first element
print("Smallest element is:", *list1[:1])
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Python #program #find #smallest #number #list
ADD COMMENT
Topic
Name
6+2 =