Programming Examples
Python program to find minimum element from a list of elements along with its index in the list
WAP to find minimum element from a list of elements along with its index in the list.
Solution
L=[2,58,95,999,65,32,15,1,7,45]
print(L)
m=min(L)
print("The Minimum element is : ",m)
print("Index of minimum element is : ",L.index(m))
Output/ Explanation:
The Minimum element is : 1
Index of minimum element is : 7