Link to the exercise I am stuck at: https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/4?curriculum_id=4f89dab3d788890003000096#
It says this:
Oops, try again. Your code looks a bit off--it threw a "'str' object has no attribute 'append'" error. Check the Hint if you need help!
def censor(text, word): censored = "*"*len(word) for character in text.split(): if character == word: censored.append(word) return "".join(censored)
My logic: I define function, then add however many * signs are needed for the length of the censored word, then loop through and append the * to the censored character. Then it returns the word with the newly changed characters.