Created
May 20, 2019 18:49
-
-
Save BurhanH/9b6a8485dbba7095f65e89f91c08f788 to your computer and use it in GitHub Desktop.
string manipulation (https://realpython.com/python-encodings-guide/)
This file contains 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
import string | |
s = "What's wrong with ASCII?!?!?" | |
s.rstrip(string.punctuation) | |
# 'What's wrong with ASCII' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment