Skip to content

Instantly share code, notes, and snippets.

@mhtsai1010
Last active August 22, 2016 04:04
Show Gist options
  • Save mhtsai1010/0c73c071df40ce863360 to your computer and use it in GitHub Desktop.
Save mhtsai1010/0c73c071df40ce863360 to your computer and use it in GitHub Desktop.
Python: list comprehension syntax
[ expression for item in list if conditional ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment