1Method 1 : Sort the list in ascending order and print the last element in the list.
2
3filter_none
4edit
5play_arrow
6
7brightness_4
8# Python program to find largest
9# number in a list
10
11# list of numbers
12list1 = [10, 20, 4, 45, 99]
13
14# sorting the list
15list1.sort()
16
17# printing the last element
18print("Largest element is:", list1[-1])
19Output:
20
21Largest element is: 99
1#!/usr/bin/python
2
3list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
4print "Max value element : ", max(list1)
5print "Max value element : ", max(list2)