for my question at first I define the following list of strings:
l = [["a1+"],["b1-","b2-", "b3-"],["c1*","c2*"],["d1"]]
I want to get outputs like this:
- "a1+b1-c1*d1"
- "a1+b2-c1*d1"
- "a1+b3-c1*d1"
- "a1+b1-c2*d1"
- ...
and append them afterwards as results to another list. The length of the outer list in the example is 4 but can differ. Also the lengths in the inner lists can differ from each other (e.g. length with b's=3 and length with c's=2).
Is there any way to get all possible results?