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