In Python 3, I'm looking got merge 2 lists of different lengths. I've went through a lot of the other threads here, but none seem to be addressing my issue.
I have:
List1 = ['A','B','C']
List2 = ['ab', 'ac', 'ad', 'ae']
Output = [['Aab', 'Aac', 'Aad', 'Aae'],['Bab','Bac','Bad','Bae'],['Cab','Cac','Cad','Cae']]
Thanks in advance!
UPDATE -- thanks ndclt for the solution for the above problem.
My real problem is:
List1 = ['A','B','C']
List2 = ['a','b','c','d','e','f','g','h','i']
Output desired = ['Aa', 'Ab', 'Ac', 'Bd', 'Be', 'Bf', 'Cg', 'Ch', 'Ci']