>>> sum = 0 >>> for i in range(1, 101): ... sum += i ... >>> sum 5050