Advertisement
Nenogzar

4. Text Filter

Mar 6th, 2024
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. removed_word = input().split(", ")
  2. txt = input()
  3.  
  4. txt = [txt.replace(word, '*'*len(word)) for word in removed_word]
  5. print(txt[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement