You are viewing a single comment's thread. Return to all comments →
a = int(input())
b = (raw_input().split(" "))
b.sort() #-----> sort is not working for negative numbers here only any idea ??
print b
b.reverse()
for i in range(len(b)):
if b[i] < b[0]: print b[i] break
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
a = int(input())
b = (raw_input().split(" "))
b.sort() #-----> sort is not working for negative numbers here only any idea ??
print b
b.reverse()
print b
for i in range(len(b)):