Find the Runner-Up Score!

  • + 0 comments

    My code is the following

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

    and there are two cases where I get errors, but when I run them from my computer they give me the expected results.