<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<In what way does your code behave incorrectly? Include ALL error messages.>
Does your count function take exactly two arguments: a list and an item to check against that list? Your code threw a “‘int’ object is not iterable” error.
<What do you expect to happen instead?>
It should have returned how ever many 'item’s there were in the sequence
def count(sequence, item): counter = 0 for i in counter: if i == item: counter = counter + 1 return counter return counter