<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
<What do you expect to happen instead?>
I expect all the cuss words to join together but they don’t print out. Am I using join correctly?
Replace this line with your code.
def censor(text, word):
for cuss_word in text.split(’ '):
if cuss_word == word:
cuss_word = ‘*’ * len(word)
print(censor(‘hey hey hey no’, ‘hey’))
<do not remove the three backticks above>