Where the running total is printed
Predict the output · Basic · §7.3 Building up
Predict the output without running the code.
Code
total = 0
for n in [4, 5, 6]:
total += n
print(total)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.