I don't understand why I get the following error message:
Oops, try again. Your function fails on censor("hey hey hey","hey"). It returns "hey hey hey" when it should return "*** *** ***".
def censor(text, word): x = text.split(" ") for i in text: for j in word: if i == j: i = "*" i.join(x) return text print censor("c'est la merde", "merde").
To be more precise, i don't know how to use join
Can someone help me?