title: Is it possible to access a previously-created variable without knowing its name?
body: <p>I have a code:</p>
  
  <pre><code>globals()['a%s' % int(x+1)] = someclass(some_things)
  asmenys.append(y)
  </code></pre>
  
  <p>How could I make <code>y</code> the variable that I added (that's in a loop)? (Don't be angry with the use of the <code>globals</code> method; it's for some reasons.)</p>