I have 3 files-
file1:
A
B
C
file2:
10,20,30,40
40,20,50,60
60,20,80,90
file3:
20
30
40
How do I merge the files to generate a single file in the form:
A 10,20,30,40 20
B 40,20,50,60 30
C 60,20,80,90 40
Where every column is separated by a '\t',that is,a tab and Not a space.
I'm really new to Python and I'm not sure how to implement this. I have seen various examples on the net where they simply concatenate the files without preserving the pattern(column).
How do I preserve the pattern by separating the columns with a single tab character?
Any relevant code would be really helpful. Thanks.