Skip to content

Instantly share code, notes, and snippets.

@samuell
Created August 17, 2012 16:11
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 samuell/3380260 to your computer and use it in GitHub Desktop.
Save samuell/3380260 to your computer and use it in GitHub Desktop.
Compact list filter code in python
mylist = ["Hej", "jag", "heter", "Samuel"]
m = [p for p in mylist if p.islower()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment