for loop in Python
<p>I am new to Python </p>

<p>In C/C++, I can have the following loop <code>for(int k = 1; k &lt;= c ; k +=2)</code></p>

<p>How do do the same thing in Python ?</p>

<p>I can do this <code>for k in range(1,c):</code> in Python, which would be identical to <code>for(int k = 1; k &lt;= c ; k++)</code> in C/C++</p>

<p>Thanks !</p>
