Created
September 18, 2020 16:15
-
-
Save timeowilliams/57e39f8688c7ade811d7c49fd28fd6f3 to your computer and use it in GitHub Desktop.
Practice Python 7: Using List Comprehensions
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
| numbers = [3,6,7,8,10,12,13] | |
| even_numbers = [num for num in numbers if num % 2 == 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment