Skip to content

Instantly share code, notes, and snippets.

@tannerlyons
Created February 14, 2017 19:48
Show Gist options
  • Save tannerlyons/0a3230c4ffbff196669bdef422f2acb9 to your computer and use it in GitHub Desktop.
Save tannerlyons/0a3230c4ffbff196669bdef422f2acb9 to your computer and use it in GitHub Desktop.
def list_evens(list)
return [x if x % 2 == 0 for x in list]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment