Created
October 10, 2019 16:29
-
-
Save luminousmen/a34ed18cfde12443f8add92b06e8a0f6 to your computer and use it in GitHub Desktop.
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 | |
input_str = “This &is [an] example? {of} string. with.? punctuation!!!!” # Sample string | |
result = input_str.translate(string.maketrans(“”,””), string.punctuation) | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment