Find the Runner-Up Score!

  • + 7 comments

    print(tuple(set(arr))[-2])

    used to find second highest value, 
    [1,3,2,5,6,6]
    ans = 5
    
    this is from FIND THE RUNNER UP SCORE.
    I know i can iterate through loop n find the second highest score.
    TEST 1 n 4 fails. Any idea?