I have two tuples:
t1 = ('A', 'B')
t2 = ('C', 'D', 'E')
I wonder how to create combinations between tuples, so the result should be:
AC, AD, AE, BC, BD, BE
EDIT
Using
list(itertools.combinations('abcd',2))
I could generate list of combinations for a given string:
[('a', 'b'), ('a', 'c'), ('a', 'd'), ('b', 'c'), ('b', 'd'), ('c', 'd')]
If I insert tuple instead of string the following error occurs:
TypeError: sequence item 0: expected string, tuple found
Any suggestion how to proceed?