code
how it most work
from itertools import * for i in combinations(["1","2","3"],3): print((\'\'.join(i))) result b