Word Censor [v1.0]

""" Word Censor Script v1.0 Self-explanatory script that accepts any text and a word to be censored and returns the text with some words censored """ def censor(text, word): if word in text: text = text.replace(word,"*" * len(word)) return text
Word Censor Script v1.0

Self-explanatory script that accepts any text and a word to be censored and returns the text with some words censored

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.