title: Changing variable name in Python
body: <p>I want to do the following in Python:</p>
  
  <pre><code>for i in range (1,2):
      string = 2
      string="string"+str(i)   
  print string1
  print string2
  </code></pre>
  
  <p>I'm expecting the output string1=2 and string2=2 but getting the following error.</p>
  
  <pre><code>NameError: name 'string1' is not defined.
  </code></pre>
  
  <p>I want to store the value of string in new variable like string1 and string2 as defined above but I'm receiving the above error. Any help would be appreciated.</p>