Why it doesn't work?


#1

Can it be in general?

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


#2

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.