Find the Runner-Up Score!

  • + 4 comments

    Here is Python 3 solution from my HackerrankPractice repository:

    n = int(input())
    arr = list(map(int, input().split()))
    print(max([x for x in arr if x != max(arr)]))
    

    Feel free to ask if you have any questions :)