Created
February 6, 2021 16:57
-
-
Save vinimonteiro/61bee6fd5c00be77f415d014738f75db to your computer and use it in GitHub Desktop.
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
| >>> squares = [i*i for i in range(6)] | |
| >>> squares | |
| [0, 1, 4, 9, 16, 25] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment