Oops, try again. Your code looks a bit off--it threw a "'list' object has no attribute 'split'" error. Check the Hint if you need help!
Code functions, also when tested in Atom. Yet Code Academy won't approve
What is the reason for this error message. How can I solve this problem
def count(sequence, item): print sequence split_list = sequence.split() print split_list count = 0 for i in range(len(split_list)): if split_list[i] == item: count += 1 else: print "Get on with it" return count print count sequence = raw_input("items seperated by spaces: ") item = raw_input("Which item should be counted? ") print count(sequence, item)