title: How to call variables generated in loop
body: <p>I need to generate a number of variables in a loop. I achieved this by using this code:</p>
  
  <pre><code>nBottom=list of initially unknown size
  loc=locals()
  for k,val in enumerate(nBottom) : loc["imp_local"+str(k)]=700
  for k,val in enumerate(nBottom) : loc["imp_global"+str(k)]=600
  </code></pre>
  
  <p>Now I need to work with them, by creating a dictionary like:</p>
  
  <pre><code>dic1={'imp_local0': 700, ..., 'imp_localn': 700}
  dic2={'imp_global0': 700, ..., 'imp_globaln': 700}
  </code></pre>
  
  <p>How can I do this?</p>