title: How to read every first line from a file as values, second as key to a dictionary
body: <p>I'm trying to create a dictionary from a text file using every second line as the key and every first line as a list of values:</p>
  
  <pre><code>value1 value2
  key1
  value3 value4
  key2
  </code></pre>
  
  <p>My code:   </p>
  
  <pre><code>file = open('path', 'r')
  my_dict = {}
  a = 0
  for lines in file:
      a += 1
      if ((a % 2) == 1):
          key_lines = lines.strip().split()
      else:
      value_lines = lines.strip().split()
      break
  my_dict[key_lines] = value_lines[1]
  </code></pre>
  
  <p>doesn't work :(</p>