Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python code to find the smallest number from the list

# list of numbers
list1 = [10, 20, 9, 69, 9]

# sorting the list
list1.sort()
 
# printing the first element
print("Smallest element is:", list1[0])
 
PREVIOUS NEXT
Tagged: #python #code #find #smallest #number #list
ADD COMMENT
Topic
Name
9+7 =