Skip to content

Instantly share code, notes, and snippets.

@malandro-sv
Last active June 25, 2016 06:46
Show Gist options
  • Select an option

  • Save malandro-sv/b400a95c58238f6b51456159c09f668b to your computer and use it in GitHub Desktop.

Select an option

Save malandro-sv/b400a95c58238f6b51456159c09f668b to your computer and use it in GitHub Desktop.
def censor(text, word):
output = text.replace(word, '*' * len(word))
return output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment