Your code looks a bit off--it threw a "'list' object has no attribute 'replace'" error. Check the Hint if you need help!
I can't understand where is mistake. Does anyone can help me?
Replace this line with your code. def censor(text, word): text = text.split() new_text = '' for char in text: if char == word: new_text = text.replace(char, ('*' * len(word))) print new_text return new_text censor('Hellow World', 'Word')