Tuesday, 2 June 2020

38. itertools.permutations(str(myInt))

import itertools
myInt = 123
l = itertools.permutations(str(myInt))
for x in l:
  print (x)