find the runner up in python

 find the runner up in python



if __name__ == '__main__':
    n=int(input())
    arr=list(map(int, input().split()))
    m=arr.count(max(arr))
    for i in range(m):
        arr.remove(max(arr))
    print(max(arr))

Comments