11/15: Why my counter doesn't work?


#1
def count (sequence, item):
found = 0
for each in sequence:
    if each == item:
        found = +1
print found  
return found

#2

The command for variable increment is not found = +1. You can use found += 1 or found = found +1.


#3

OHHH, of course!

Thank you very much, @burakcetinkaya!


#4

try in line 5
found += 1