Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

find greatest number in list python

# Python program to find largest
# number in a list
 
# list of numbers
list1 = [10, 20, 4, 45, 99]
 
 
# printing the maximum element
print("Largest element is:", max(list1))
Comment

PREVIOUS NEXT
Code Example
Python :: create nested dictionary with user input in python 
Python :: sklearn train test split 
Python :: extract outliers from boxplot 
Python :: remove all na from series 
Python :: save seaborn lmplot 
Python :: NumPy unique Example Get unique values from a 1D Numpy array 
Python :: how to convert list to all uppercase 
Python :: python split 
Python :: for loop example python 3 
Python :: for each loop python 
Python :: cv2 cuda support print 
Python :: waiting in python. time , sleep 
Python :: python cls command line 
Python :: django template render dict 
Python :: pandas drop duplicates but keep most recent date 
Python :: keras model save 
Python :: Genisim python 
Python :: installing python3.9 on linux mint 20 
Python :: download unsplash images code 
Python :: print multiplication table python 
Python :: python try except: print error 
Python :: python parse int as string 
Python :: Add label to histogram 
Python :: to_frame python 
Python :: f readlines python not working 
Python :: python for dummies 
Python :: get reactions from message discord.py 
Python :: django change settings at runtime 
Python :: identity matrix python 
Python :: convert number to char python 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =