Challenge #9 - Find the Runner Up

 if __name__ == '__main__':

    n = int(input())

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

    arr = list(arr)

    winner = max(arr)

    while max(arr) == winner :

        arr.remove(winner)

    

    print(max(arr))


Comments

Popular posts from this blog

Challenge - #48 - Incorrect Regex

Challenge - #43 - Time Delta

Challenge - #52 - Set .discard(), .remove(), & .pop()