Skip to content

Instantly share code, notes, and snippets.

@vinimonteiro
Created February 6, 2021 16:57
Show Gist options
  • Select an option

  • Save vinimonteiro/61bee6fd5c00be77f415d014738f75db to your computer and use it in GitHub Desktop.

Select an option

Save vinimonteiro/61bee6fd5c00be77f415d014738f75db to your computer and use it in GitHub Desktop.
list comprehensions
>>> 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