10. censor (simple code)


#1

Someone could help me with this code?

def censor(text, word):
   text = ""
   text.replace(word,"*"*len(word))

It returns “SyntaxError: invalid syntax”

Thank you!