title: Is there a way to manipulate the counter in a "for" loop in python
body: <p>By &quot;counter&quot; I mean the &quot;i&quot; in the code I attached. I just picked up Python for University, and I was wondering if i could maniuplate the counter just like you can in C++</p>
  <pre><code>n=5
  for i in range(n):
      print(&quot;Test&quot;)
      i=i-1
  </code></pre>
  <p>The result of this code is</p>
  <p><strong>Test
  Test
  Test
  Test
  Test</strong></p>
  <p>but i was wondering if you could manipulate the &quot;i&quot; so it is an infinite loop</p>
  <p>Feel free to ask questions about what I mean if it is not clear enough</p>