You are viewing a single comment's thread. Return to all comments →
There's a small bug that could occur if all the entries are the same for n. I.e. if n = 2, and the list contains [1, 1] for scores, it will not evaluate. You'll need to add something along these lines in order to get around those cases; here's what I came up with.
i = int(input())
lis = list(map(int,input().split())) [:i]
z = max(lis)
if lis.count(lis) == len(lis):
while max(lis) == z: