title: Series Summation using for loop in python
body: <p>Let's assume this series</p>
  
  <pre><code>1+2+3+....+n
  </code></pre>
  
  <p>in <strong>c</strong> with <strong>for loop</strong> we can easily done this</p>
  
  <pre><code>for(i=1;i&lt;=n;i++)
  {
      sum += i;
  }
  </code></pre>
  
  <p>in <strong>python</strong> i am able to done this using <strong>while loop</strong></p>
  
  <pre><code>while(num &lt;= n):
  
        sum += num
        num = num+1
  </code></pre>
  
  <p><strong>but i can't do it using python for loop</strong></p>