title: Reading data from large text file with strings and floats in Python
body: <p>I'm having trouble reading large amounts of data from a text file, and splitting and removing certain objects from it to get a more refined list. For example, let's say I have a text file, we'll call it 'data.txt', that has this data in it.</p>
  
  <pre><code>Some Header Here
  Object Number = 1
  Object Symbol = A
  Mass of Object = 1
  Weight of Object = 1.2040
  Hight of Object = 0.394
  Width of Object = 4.2304
  
  Object Number = 2
  Object Symbol = B
  Mass Number = 2
  Weight of Object = 1.596
  Height of Object = 3.293
  Width of Object = 4.654
  .
  .
  . ...Same format continuing down
  </code></pre>
  
  <p>My problem is taking the data I need from this file. Let's say I'm only interested in the Object Number and Mass of Object, which repeats through the file, but with different numerical values. I need a list of this data. Example</p>
  
  <pre><code>Object Number    Mass of Object
  1                1
  2                2
  .                .
  .                .
  .                .
  etc.
  </code></pre>
  
  <p>With the headers excluded of course, as this data will be applied to an equation. I'm very new to Python, and don't have any knowledge of OOP. What would be the easiest way to do this? I know the basics of opening and writing to text files, even a little bit of using the split and strip functions. I've researched quite a bit on this site about sorting data, but I can't get it to work for me.</p>