Skip to content

Instantly share code, notes, and snippets.

@riceissa
Created August 17, 2015 02:30
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 riceissa/8830cbc66b69082f4c46 to your computer and use it in GitHub Desktop.
Save riceissa/8830cbc66b69082f4c46 to your computer and use it in GitHub Desktop.
A cross B
>>> A = [1, 2]
>>> B = [3, 4]
>>> for i in A:
... for j in B:
... print((i,j))
...
(1, 3)
(1, 4)
(2, 3)
(2, 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment