Skip to content

Instantly share code, notes, and snippets.

@yakkomajuri
Created July 24, 2020 19:59
Show Gist options
  • Save yakkomajuri/76476319a2bca77c550d411ac889be46 to your computer and use it in GitHub Desktop.
Save yakkomajuri/76476319a2bca77c550d411ac889be46 to your computer and use it in GitHub Desktop.
evens = [i for i in range(100) if i % 2 == 0]
squares = [i**2 for i in evens]
pairs = [(x,y) for x in range(100) for y in range(100)]
squarepairs = [(i, i**2) for i in range(100) if i % 2 == 0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment