I get the following error: > Oops, try again. Your function fails on count(,7). It returns 1 when it should return 0.
I'm looking to iterate the item through the sequence. And everytime there is a match, it should count up +1. For some reason I lost it. Have no idea how to get this thing to work. Thanks in advance!
def count(sequence, item): total = 0 for item in sequence: total +=1 return total