Skip to content

Instantly share code, notes, and snippets.

@mcescalante
Created December 12, 2013 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcescalante/7921270 to your computer and use it in GitHub Desktop.
Save mcescalante/7921270 to your computer and use it in GitHub Desktop.
Remove punctuation from python list
#Removes all of the punctuation in any item in a list. The characters to be removed are a string, "punctuation" from your list, "list"
list = [''.join(c for c in s if c not in punctuation) for s in list]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment