censor("hey hey hey","hey") works fine, but I get the following on the froyo one:
Error: Oops, try again. Your function fails on censor("Yo go fro yo go","go"). It returns "go ** go go **" when it should return "Yo ** fro yo **".
I have reviewed the code, and am trying to figure out why instead of using the original word from the phrase, it is replacing the original word with the word in the variable word.
def censor(text,word): newText =  textList = text.split() for i in textList: if i == word: new_word = "*" * len(word) newText.append(new_word) else: newText.append(word) return " ".join(newText)