Hint
🧠Not sure where to start?
Start with this in the first line:
total = 0
This creates a variable to store the running total of the sum.
Now think: how can you go through the numbers from 1 to 100 and add each one to the total? Maybe use a for
loop with range
?
for i in range(1, ...