Why it doesn't work?


Can it be in general?

def count(sequence, item):
num_times = 0
maximu = []
for i in seguence:
c = count(i)
i += 1
return max(maximu)


You used for i in seguence instead of sequence. And I don't see you using item anywhere in that function so there is no need for that parameter if you are not going to use it.