Summation with for. : For : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » For »

 

Summation with for.


sum = 0

for number in range2101):
   sum += number

print "Sum is", sum



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» For