Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to find largest number in a list

# 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])
 
PREVIOUS NEXT
Tagged: #Python #program #find #largest #number #list
ADD COMMENT
Topic
Name
9+7 =