multiple lines in one line

tascioglu.tansu at gmail.com tascioglu.tansu at gmail.com
Fri Aug 30 16:26:00 EDT 2019


Hello,I working on some file operations with python.I have 2 text file which is consist of lines such as apple_pie 0.3434 0.6767 0.2312 and other text file has apple 0.2334 0.3412 0.123
pie 0.976 0.75654 0.2312
I want to append lines like apple_pie 0.3434 0.6767 0.2312 0.2334 0.3412 0.123(values for apple) 0.976 0.75654 0.2312(values for pie) in one line. does anybody know how to do it ?Thanks...



More information about the Python-list mailing list