Find the Runner-Up Score!

  • + 0 comments

    n = int(input())

    arr = list(map(int, input().split()))

    while len(arr) != n:

    print(f"Please enter exactly {n} numbers!")
    arr = list(map(int, input().split()))
    

    runner_up = sorted(set(arr))

    runner_up.pop()

    print(runner_up[-1]) `