For getting possible combinations of set of "characters", syntax would be:
>>>q=[''.join(p) for p in itertools.combinations('ABC',2)]
>>>q
['AB', 'AC', 'BC']
What about getting possible combinations of set of "STRINGS" for example :
'A1X2','B1','C19'
output should be:
['A1X2B1', 'A1X2C19', 'B1C19']