Advertisement
Peaser

word censoring system

Oct 16th, 2014
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #inp = raw_input()
  2. inp = "sweet fucking shit!"
  3.  
  4. bad_words = ["shit", "piss", "fuck", "cunt", "cock", "tits"]
  5.  
  6. for i in bad_words:
  7.     inp = inp.replace(i, "*"*len(i))
  8.  
  9.  
  10. print inp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement