Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strIn = input("Type : ")
- arrBad = ['shit', 'ass', 'cunt', 'fuck', 'nigger', 'bitch']
- divide = strIn.split(' ')
- lenStr = len(divide)
- s = 0
- while s != lenStr:
- arrUsrIn = divide[s]
- s += 1
- if arrUsrIn in arrBad:
- print("Bad word detected\n")
- else:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement