Skip to content

Instantly share code, notes, and snippets.

@pcnoic
Last active January 21, 2021 20:56
Show Gist options
  • Save pcnoic/9755709ee7b2526f6be0e3d831a97d35 to your computer and use it in GitHub Desktop.
Save pcnoic/9755709ee7b2526f6be0e3d831a97d35 to your computer and use it in GitHub Desktop.
all possbile combinations of numbers
from itertools import permutations
comb = permutations([1, 2, 3], 3)
for i in comb:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment