Thanks a lot for the help.
I wrote the code and in screens seems to be working as expected. However, the validation process does not.
def censor(text, word): n = text.split() full = "" for tex in n: if tex == word: size = len(tex) tex = "*" * size full= full + " "+ tex print full return full
Could you please let me know if i am in the right path?