Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def censor(text, word):
- return text.replace(word, '*' * len(word))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement