Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- banned_words = input().split(', ')
- text = input()
- for banned in banned_words:
- while True:
- if banned not in text:
- break
- else:
- length = len(banned)
- text = text.replace(banned, '*' * len(banned))
- print(text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement