Find the Runner-Up Score!

  • + 0 comments

    using filter..

    n = int(input())
    nums = list(map(int, input().strip().split()))    
    z = max(nums)
    print(max(list(filter(lambda a: a != z, nums))))