Skip to content

Instantly share code, notes, and snippets.

@yasufumy
Last active April 27, 2017 12:36
Show Gist options
  • Save yasufumy/4eca704abf3429e65fcb0c378faa2261 to your computer and use it in GitHub Desktop.
Save yasufumy/4eca704abf3429e65fcb0c378faa2261 to your computer and use it in GitHub Desktop.
def replace_chars(text):
chars = ",.?!:;"
for c in chars:
if c in text:
text = text.replace(c, '')
return text
@yasufumy
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment