Skip to content

Instantly share code, notes, and snippets.

@hay-kathode
Created December 6, 2021 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hay-kathode/026d99f5e21dbb68d3d0448ec8dbc91a to your computer and use it in GitHub Desktop.
Save hay-kathode/026d99f5e21dbb68d3d0448ec8dbc91a to your computer and use it in GitHub Desktop.
from itertools import product
x = [1, 2, 3]
y = [4, 5]
xy = product(x, y)
print(list(xy))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment