title: How to Use a Variable in the name of another variable?
body: <p>Additionally onto <a href="https://stackoverflow.com/questions/9538929/how-to-include-a-variable-in-another-variable">my other post</a>.
  If I have a list of coordinates, how can I assign them to variables and keep appending and assigning:</p>
  
  <pre><code>positions = [(1,1), (2,4), (6,7)]
  index = 0
  for looper in range(0, len(positions)):
      posindex = positions[index]
      index = index + 1
  </code></pre>
  
  <p>Where posindex is pos0, then pos1, then pos2 and increases with the variable index, which will give me the index in the list as well. Python gives me this:</p>
  
  <pre><code>"'posindex' is undefined"
  </code></pre>
  
  <p>Anyway to put a variable into another one?
  Any other problems I may run into?</p>