Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sumon328/610b2e721680d4e297b91e81908a65ea to your computer and use it in GitHub Desktop.
Save sumon328/610b2e721680d4e297b91e81908a65ea to your computer and use it in GitHub Desktop.
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
print([x for x in a if x % 2 == 0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment