Find the Runner-Up Score!

  • + 6 comments

    use it

    if name == 'main':

        n = int(input())
    
        arr = list(map(int, input().split()))
    
        listnew=[]
    
        for i in arr:
    
             if i not in listnew:
    
    
                        listnew.append(i)
    
        listnew.sort(reverse=True)
    
        print(listnew[1])