Oops, try again. Your code looks a bit off--it threw a "invalid literal for int() with base 10: 'one'" error. Check the Hint if you need help!
Well on the console, it does print out the answer expected, but I am still getting an error.
Replace this line with your code. def count(sequence,item): count_list =  item = int(item) for i in sequence: if i == item: count_list.append(i) return len(count_list) print count([1, 2, 1, 1] , 1)