Find the Runner-Up Score!

  • + 0 comments

    This worked neatly for me. The only thing I'll add are paranthases wrapped around the print statement because I was getting errors without them:

    n = int(input()) arr = map(int, input().split()) print (sorted(list(set(arr)))[-2])