Skip to content

Instantly share code, notes, and snippets.

@jeremyis
Created August 24, 2018 05:05
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 jeremyis/3577bf261450c0f18c16a060a9032493 to your computer and use it in GitHub Desktop.
Save jeremyis/3577bf261450c0f18c16a060a9032493 to your computer and use it in GitHub Desktop.
new_list = [expression(i) for i in old_list if filter(i)]
d = {key: value for (key, value) in dict.items()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment