title: How to prevent variable from being overridden by a loop in Python?
body: <p>In C there is an option to decide whether we want to override a loop variable.</p>
  
  <p>For example, <code>i</code> is overridden in this snippet:</p>
  
  <pre><code>int i = 3;
  for (i = 0;i &lt; 5;i++);
  </code></pre>
  
  <p>But <code>i</code> is not overridden in this snippet:</p>
  
  <pre><code>int i = 3;
  for (int i = 0;i &lt; 5;i++);
  </code></pre>
  
  <p>Haven't found a similar option in Python.</p>
  
  <p>For example, <code>i</code> is overridden in this snippet:</p>
  
  <pre><code>i = 3
  for i in range(5):
      pass
  </code></pre>
  
  <p>How to prevent <code>i</code> from being overridden in this case?</p>