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


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

<What do you expect to happen instead?>

```python

Replace this line with your code.

<do not remove the three backticks above>

#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.