splitting a text file in particular row and save the output

hii experts i have a long text file that contain data as below

1
2
3
4
5
6
7

i want to split the file at particular column index and paste the splitted output side by side.so my expected output would be

1  5
2  6
3  7
4

can anybody suggest a solution in python .Thanks.



Read more here: https://stackoverflow.com/questions/64955329/splitting-a-text-file-in-particular-row-and-save-the-output

Content Attribution

This content was originally published by glk shu at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: