Created
September 15, 2020 05:14
-
-
Save swati210994/f7dc22e5f04361cec4ae6a78ab9a9065 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
| string_no_punct_string=''.join(p for p in string_inp if p not in string.punctuation) | |
| print('String input:\n{}\n\nString input with no punctuations using string:\n{}'.format(string_inp,string_no_punct_string)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment