Created
February 7, 2019 16:26
-
-
Save pdbartsch/f70559266cb6c87b170142166a631eb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] | |
even = [n for n in a if n%2 == 0] | |
odd = [n for n in a if n%2 != 0] | |
print('even:', even, '\nodd:', odd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment