How can we in python change the number of elements in a line to the next, this is, for example...
We have the following txt file:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
And we want a program which the output is:
1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16
So how can I obtain an output file with only 3 columns instead of 4 like the original file???