Hi, I'm stuck on the Count exercise: (https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/2/1?curriculum_id=4f89dab3d788890003000096).
I'm not sure where I've gone wrong but the problem seems to arise when the count function is called, in that when I try to call it with both arguments ('sequence' and 'items') inside the function it doesn't work, but when I call the function on 'sequence' with only the argument 'items', it returns the correct answer. Could I please have some advice on how to fix this so that calling the function with both 'sequence' and 'items' as arguments returns the correct answer? Thanks.
def count(sequence, item): count = 0 for i in range(len(sequence)): if item == sequence[i]: count =+ 1 return count sequence = [1,1,0,1,1] print sequence.count(1) print count(sequence, 1)