Skip to content

Instantly share code, notes, and snippets.

@rostyq
Created July 27, 2017 16:59
Show Gist options
  • Save rostyq/ac7706531e32cd1a5b758a367e7303ce to your computer and use it in GitHub Desktop.
Save rostyq/ac7706531e32cd1a5b758a367e7303ce to your computer and use it in GitHub Desktop.
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b = [i for i in a if i % 2 == 0]
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment