Find the Runner-Up Score!

  • + 0 comments

    Pretty confused. I did pretty much exactly what you were trying to do

    import operator

    if name == 'main': n = int(raw_input()) arr = map(int, raw_input().split()) max_value = max(arr) arr = arr.remove(max_value) second_max = max(arr)

    print (second_max)
    

    but I get a runtime error with this code.