title: How to obtain second and fourth word from each line in a file
body: <p><strong>Example</strong>: File will be called "<strong><code>Sentences.dat</code></strong>". It will have these lines. </p>
  
  <blockquote>
    <p>Name #3 is Bob</p>
    
    <p>Name #7 is Marie</p>
    
    <p>Name #8 is Kate</p>
    
    <p>Name #2 is George</p>
  </blockquote>
  
  <p>I want to save these to a <strong><code>dictionary</code></strong>, where their number is the <code>key</code> and their name is the <code>value</code>. This is what I have so far.</p>
  
  <pre><code>file = open("Sentences.dat","r")
  dictNames = {}
  line = 1
  while True:
      content = file.readlines()[line]
      split = content.split()
      dictNames[split[1]] = split[3]
      line = line + 1
  </code></pre>