Hello all,
just a quick question! I was wondering how can you pace lines together in python. In my case i have a file like this:
<word> <word> <number>.txt
<word> <word> <number>.txt
<word> <word> <word> <number>.txt
<word> <word><word><word> <number>.txt
<word>
<word> <number>.txt
<word> <number>.txt
<word>
<word> <number>.txt
Does anyone know how can i make the lines with the solo <word> to be attached to the next ones with <word> <number>.txt?
Something like this:
<word> <word> <number>.txt
<word> <word> <number>.txt
<word> <word> <word> <number>.txt
<word> <word><word><word> <number>.txt
[B]<word> <word> <number>.txt
[/B]<word> <number>.txt
[B]<word> <word> <number>.txt
[/B]
Can't think of something and i have to admit i am stuck to probably an easy issue to solve. Any ideas?
Many thanks.