1# any list
2a = [1, 7, 3, 12, 5]
3
4# index of minimum element
5# if more than 1 minimum,
6# first index is returned
7min_index = a.index(min(a))
8
9# index of maximum element
10max_index = a.index(max(a))
1# Python program to find largest
2# number in a list
3
4# list of numbers
5list1 = [10, 20, 4, 45, 99]
6
7
8# printing the maximum element
9print("Largest element is:", max(list1))
10