Last active
July 9, 2018 22:51
-
-
Save 3rdAnimal/df266722e0e7c1f61ce848b3234eeaa8 to your computer and use it in GitHub Desktop.
practicepython.org: List Comprehensions
This file contains 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] | |
b = [ num for num in a if num%2==0 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment