Last active
April 27, 2017 12:36
-
-
Save yasufumy/4eca704abf3429e65fcb0c378faa2261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def replace_chars(text): | |
chars = ",.?!:;" | |
for c in chars: | |
if c in text: | |
text = text.replace(c, '') | |
return text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
check a link below
Multiple character replace with python