Please help me . porblem wiht the code. I have the following error can comeone explaine why please?


#1



Replace this line with your code.


#2

@gianis88: If you stop to analyze, there's a small difference on the output with the expected output.
If you look close to it, there's a space between the last asterisk and the double quotes.

Your output: "*** *** *** "
Expected output: "*** *** ***"

Could it be that? Maybe, try to remove that last whitespace and see if it works out.

If not, let us know!


#3

jes you are right,,, I've fixed now
text.replace(word,'*' * len(word))


#4

Glad it works :slight_smile:


#5

you know what: the best way to learn coding is to fix the others error.