⌁
Lesson 14Counters and accumulators
Remember a result across loop turns
What you will learn
Master “for loops and range” first- Initialize an accumulator before a loop
- Update it inside the loop
- Print the final value after the loop