Run
# List a=[18, 52, 23, 41, 32] # Sort the list, default is in ascending order a.sort() # Largest number is the last item in the sorted list ln = a[-1] # Print the largest number print("Largest element is: ",ln)
Output