Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created August 22, 2021 06:58
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 fatosmorina/11f536f11d9ce1c6c2f9a71fc619b875 to your computer and use it in GitHub Desktop.
Save fatosmorina/11f536f11d9ce1c6c2f9a71fc619b875 to your computer and use it in GitHub Desktop.
even_numbers = [number for number in numbers if number % 2 == 0]
print(even_numbers) # [2, 4, 6, 8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment