# Sums the values from 0 to 10,000 inclusively total = 0 for i in range(10001): total += i # "total += i" is shorthand for "total = total + i" print("Sum of all numbers from [0,10000]:", total)