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.
Can anyone figure out the mistake in this code? It tells that list index out of range.I am not getting it.
a = input()
b = raw_input().split()
for i in range(len(b)):
if int(b[i])==int(max(b)):
b.pop(i)
print b
d = int(max(b))
print d
Sherlock and Moving Tiles
You are viewing a single comment's thread. Return to all comments →