title: variable composition in python
body: <p>I have created several variables with different values. Then I have created a while to access them one at a time. I would like to know how to access the value of a variable created using a composition of the variable ([base_name] + count)?</p>
  
  <p>For example:</p>
  
  <pre><code>instanceNumber=3
  instance1="server1"
  instance2="server2"
  instance3="server3"
  
  print instance1 --&gt; This prints server1
  
  count = 1
  while count &gt;= instanceNumber:
      instanceServer = 'instance' + str(count)
      print "%s" % instanceServer --&gt; This prints only instance1
      # Execute some action on the server
      count += 1
  </code></pre>
  
  <p>I need to get server1, server2, server3 one after the other. I need to do this without using a list or a dictionary.</p>
  
  <p>Thanks</p>