10. censor (simple code)

Someone could help me with this code?

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

It returns “SyntaxError: invalid syntax”

Thank you!