Oct-16-2018, 11:02 AM
a = [1,2,3,4,5] high1 = 0 high2 = 0 for item in a: if item > high1: high1 = item pos = a.index(item) print str(high1) print str(pos) for item in a: if item > high2 and item < high1: high2 = item pos = a.index(item) print str(high2) print str(pos)