1# function to find minimum and maximum position in list
2def minimum(a, n):
3
4 # inbuilt function to find the position of minimum
5 minpos = a.index(min(a))
6
7 # inbuilt function to find the position of maximum
8 maxpos = a.index(max(a))
9
10 # printing the position
11 print "The maximum is at position", maxpos + 1
12 print "The minimum is at position", minpos + 1