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()


Output:

The index of the largest smallest is : 6



More Questions


36 . Write a python program to Find the index of the smallest number in the list
37 . Write a python program to find absolute value of a number in the list
38 . Write a python program to adding a thousand separator
39 . Write a python program startswith and Endswith Methods
40 . Write a python program to print Nlargest numbers
41 . Write a python program to print Nsmallest numbers



For latest job updates join Telegram Channel: https://t.me/sateeshm