Function to censor single word in a sentence – codereview.stackexchange.com

The following function censors a single word of choice in a sentence with asterisks, regardless of how many times the word appears. How can I further simplify this code? def censor(text,word): ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Function to censor single word in a sentence – codereview.stackexchange.com"