Why does itertools.permutations() return a list of characters or digits for each permutation, instead of just returning a string?
For example:
>&g
Perumatation can be done for strings and list also, below is the example..
x = [1,2,3]
if you need to do permutation the above list
print(list(itertools.permutations(x, 2))) # the above code will give the below.. # [(1,2),(1,3),(2,1)(2,3),(3,1),(3,2)]