Loading…
Loop from 1 to 100, summing all integers. Use the time module to measure how long it takes, but ultimately print 'LOOPSUM:' plus the final sum. The sum of 1..100 is 5050.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.