title: Python join data lines together
body: <p>Hello i have dataset a few thousand lines which is split in even and odd number lines and i can't find a way to join them together again in the same line. Reading the file and overwriting it is fine or making a new file.</p>
  
  <p>I have found this <a href="https://stackoverflow.com/questions/17908317/python-even-numbered-lines-in-text-file">example</a> to print the seperate lines but can't get it to write it to file.</p>
  
  <p>I would like it to look like this:</p>
  
  <pre><code>Time = 1 Temperature1 = 24.75 Temperature2 = 22.69 Temperature3 = 20.19 RPM = -60.00
  Time = 2 Temperature1 = 24.75 Temperature2 = 22.75 Temperature3 = 20.19 RPM = -60.00
  etc...
  </code></pre>
  
  <p>Example of dataset:</p>
  
  <pre><code>Time = 1 Temperature1 = 24.75 Temperature2 = 22.69 Temperature3 = 20.19
   RPM = -60.00
  Time = 2 Temperature1 = 24.75 Temperature2 = 22.75 Temperature3 = 20.19
   RPM = -60.00
  Time = 3 Temperature1 = 24.75 Temperature2 = 22.75 Temperature3 = 20.19
   RPM = -60.00
  Time = 4 Temperature1 = 24.81 Temperature2 = 22.81 Temperature3 = 20.25
   RPM = -60.00
  Time = 5 Temperature1 = 24.81 Temperature2 = 22.81 Temperature3 = 20.19
   RPM = -60.00
  Time = 6 Temperature1 = 24.81 Temperature2 = 22.81 Temperature3 = 20.19
   RPM = -60.00
  Time = 7 Temperature1 = 24.81 Temperature2 = 22.81 Temperature3 = 20.25
   RPM = -60.00
  Time = 8 Temperature1 = 24.81 Temperature2 = 22.87 Temperature3 = 20.25
   RPM = -60.00
  Time = 9 Temperature1 = 24.87 Temperature2 = 22.87 Temperature3 = 20.25
   RPM = -60.00
  Time = 10 Temperature1 = 24.87 Temperature2 = 22.87 Temperature3 = 20.25
   RPM = -60.00
  </code></pre>