title: python variable name change
body: <p>I have a bit of question with python.</p>
  
  <p>I have a piece of code</p>
  
  <pre><code>screen.blit(badninja1,(badninja1px ,badninja1py))
  screen.blit(badninja2,(badninja2px ,badninja2py))
  screen.blit(badninja3,(badninja3px ,badninja3py))
  </code></pre>
  
  <p>I know it repeats 3 time and I want to do some refactoring.</p>
  
  <p>That is a piece of python code
  what it does was draw badninja1 at location badninja1px and badninja1py etc.
  bandninja1, badninja1px, badninja1py and other are variable names.</p>
  
  <p>I wanted to put this code in a for loop</p>
  
  <pre><code>for x in range(1, 4):
      #add number 1, 2, 3 to the variable name.
  </code></pre>
  
  <p>I tried to do that and realized that I can combine string easily in python:</p>
  
  <pre><code>"Dec "+str(25)+"th".
  </code></pre>
  
  <p>However, changing variable name is a bit tricky.</p>
  
  <p>Can anybody give ma a hint thanks!!</p>