Find the Runner-Up Score!

  • + 0 comments
    arr = map(int, raw_input().split())
    arr.sort()
    print "elelments are %r"%arr
    
    m=max(arr)
    print "maximum number is %r " %m
    l = len(arr)
    print" length of the list is % r:" %l
    
    
    for i in range(0,l):
      if arr[i]==m:		
    	print"%r is equal to %r"%(arr[i],m)
    	del arr[i]
    	   
    print max(arr)
    

    PLEASE HELP! Why doesnt this get past all the test cases? It runs fine if the input is 1,2,3,4 or 4 3 2 1 or 4 4 3 1..but not the test cases.