count the individual number of words in a sentence that occur in the special words list
def words_in_list(words, special_words): count = 0 for word in words: if word in special_words: count += 1 return count words_in_list(["hello", "world", "this", "is", "my", "function"], ["hello", "world"])