Count


#1


I can't seem to figure out how to apply "found" in the logic


def count (sequence, item):
    sequence = []
    count = 0
    for x in sequence:
        if x == item:
            count += 1
    return count


#2

here:

sequence = []

why do you overwrite your function parameter?


#3

Ah! I get it now....

Thanks man.


#4