Find the Runner-Up Score!

  • + 29 comments

    My solution:

    if __name__ == '__main__':
        n = int(input())
        arr = map(int, input().split())
        print (sorted(set(arr))[-2])
    

    'Set' is the key.