"Your code looks a bit off--it threw a "'list' object has no attribute 'replace'" error. Check the Hint if you need help!"
I defined x to be the split string text and y to be the asterisk version of the input word. Then I attempted to replace any word in x with y and rejoin. Any help would be greatly appreciated!!
def censor(text, word): x = text.split() y = "*" * len(word) for i in x: if i == word: x.replace(i, y) return "".join(x)