Skip to content

Instantly share code, notes, and snippets.

@swati210994
Created September 15, 2020 05:14
Show Gist options
  • Select an option

  • Save swati210994/f7dc22e5f04361cec4ae6a78ab9a9065 to your computer and use it in GitHub Desktop.

Select an option

Save swati210994/f7dc22e5f04361cec4ae6a78ab9a9065 to your computer and use it in GitHub Desktop.
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