sum first 100 integers in python code example
Example 1: sum first 100 integers in python
mysum = 0
for nextnumber in range(1, 101):
mysum += nextnumber
print mysum
Example 2: sum first 100 integers in python
mysum = 0
for nextnumber in range(1, 101):
mysum += nextnumber
print mysum