The error :
Oops, try again. Your function fails on censor("hey hey hey","hey"). It returns "hey hey hey" when it should return "*** *** ***".
I have this error and don't know where I get wrong
I 'm wondering about the 'Return'
What is the exact function of Return?
And in this exercise, what should I return
def censor(text, word): text = text.split() length = len(word) for char in text: if char == word: char = '*' * length new = ' '.join(text) return new y = censor("hey hey hey","hey")