# Sum 0 to 99 s = 0 for x in range(1, 100): s = s + x print s # Sum 0 to 99 s = 0 x = 1 while x < 100: s = s + x x = x + 1 print s