Created
July 28, 2025 02:37
-
-
Save juanjoseexpositogonzalez/e04d3a592f8fbddb291f9068850e9d2b to your computer and use it in GitHub Desktop.
Code snippet: List comprehension
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
| l = [num for num in range(101) if num%2] | |
| print(l) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment