I have three files and i want to cross join (or combine) each line of one file with other. EX) File1 contains
a,b,c
d,e,f
File2 :
1,2,3
4,5,6
so i want output like :
a,b,c,1,2,3
a,b,c,4,5,6
d,e,f,1,2,3
d,e,f,4,5,6
I could do this in python with loops one inside other , but if we have more than 4 files there would be multiple loops .
Is there any other way in python to resolve this in efficient way?