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
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad