I want to read a file and convert the columns to rows.
A 1 2 3 4 5 6 7 8 9 10
B 11 12 13 14 15 16 17 18 19 20
C 21 22 23 24 25 26 27 28 29 30
want them to be like this:
A B C
1 11 21
2 12 22
3 13 23
4 14 24
5 15 25
I tried this but does not work
for J in range (0, 6):
RR2 = (fields[J].rstrip())
print >>ofh, RR2
please your help is need