from better_profanity import profanity
text = "What the hell is going on?"
censored_text = profanity.censor(text)
print(censored_text)
#clcoding.com
Explanation:
from better_profanity import profanity
text = "I can't believe he said that!"
has_profanity = profanity.contains_profanity(text)
print(has_profanity)
#clcoding.com














.png)
.png)
.png)




















