title: Python: Assign Labels to Values from a List
body: <p>I have an AscII text file with two columns first column is integer numbers and second column is word labels, I want to define values with the labels so <code>MLKR = 348</code>, <code>CLRD = 449.3</code>, etc.</p>
  
  <p>Here is how I load the AscII file    </p>
  
  <pre><code>with open('tops.txt') as f:
      lines = f.readlines()
      lines = [line.rstrip('\n').split('\t') for line in open('tops.txt')]
  </code></pre>
  
  <p>Which gives me this output </p>
  
  <pre><code>[['348', 'MLKR'], ['449.3', 'CLRD'], ['667', 'SSPK'], ['891.2', 'MNVL'], ['992.2', 'DEIT'], ['1011', 'PEKISKO']]
  </code></pre>
  
  <p>Now what I need to know is how to use the list to assign labels with vales so </p>
  
  <pre><code>MLKR = 348
  CLRD = 449.3
  SSPK = 667
  MNVL = 891.2
  DEIT = 992.2
  </code></pre>
  
  <p>Thanks for the help!</p>