• + 2 comments
    Can anyone figure out the mistake in this code? It tells that list index out  of range.I am not getting it.
    a = input()
    b = raw_input().split()
    
    for i in range(len(b)):
        if int(b[i])==int(max(b)):
            b.pop(i)
    print b
    d = int(max(b))
    print d