We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7112524 commit 4b3d3adCopy full SHA for 4b3d3ad
Censor word detection/censor_word_detection.py
@@ -2,13 +2,11 @@
2
3
def detect(data):
4
try:
5
- '''profanity.censor(data) will print **** '''
6
- '''profanity.censor(data,'#') will print #### if censor word it detected; else it will print data you have entered '''
7
output=profanity.censor(data,'#')
8
print(output)
9
except Exception as e:
10
print(e)
11
12
profanity.load_censor_words()
13
data = input("enter your msg:")
14
-detect(data)
+detect(data)
0 commit comments