We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if __name__ == '__main__':
n=int(input()) # given
arr=list(map(int, input().split())) #add list before map
print(max([i for i in arr if i!=max(arr)])) # actual code
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
One line code in python3: