title: creating multiple iteration of the same code
body: <p>beginer question:
  I often have to repeat the same line of code 10 times for 10 different variables (i read you can't or should not create variable dynamically)</p>
  <p>I thought to help me once i written it once I could iterate with a find replace (I am currently doing it in word)</p>
  <p>I wrote this but get tons of error when i input code like if console trying to execute  the code. what am i missing? is it because i paste it i the console does it need to be imported from a ext file ?</p>
  <pre><code>LineOfCode = input(&quot;Enter the code you want to iterate the iteration variable need be 8&quot;)
  for i in range(10):
      LineOfCode.replace(&quot;8&quot;,str(i))
      print(LineOfCode)
  </code></pre>