Write a python program to Find the index of the largest number in the list
Write a python program to Find the index of the largest number in the list
Write a python program to Find the index of the largest number in the list
Program
def myfun():
x = [120, 425, 657, 879, 134, 67, 13]
max_num = max(enumerate(x, start=0),key = lambda x: x[1])
print('The index of the largest number is :',max_num[0])
if __name__=="__main__":
myfun()