Find the Runner-Up Score!

  • + 3 comments

    Nice, I didn't think of the set function. Here is my aproach:

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