Skip to content

Instantly share code, notes, and snippets.

@vinimonteiro
Created February 6, 2021 17:56
Show Gist options
  • Save vinimonteiro/9aab744ebabf6b807bbae7275dc50c39 to your computer and use it in GitHub Desktop.
Save vinimonteiro/9aab744ebabf6b807bbae7275dc50c39 to your computer and use it in GitHub Desktop.
set 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