Oops, try again. Your function fails on count([4, 'foo', 5, 'foo'],5). It returns None when it should return 1.
I'm a tad bit confused... what's wrong with my code? I have a sneaking suspicion that I iterated through
sequence incorrectly. However, If I did, I don't know how to fix it.
def count(sequence, time): found = 0 if time in sequence: for time in sequence: found += 1 else: return found