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

The Minimum element is :  1
Index of minimum element is :  7
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad