In this lesson
- It starts with a question. Start at 0. Add 2. Add 2. Add 2.
- The idea you will find. for n in [2,2,2]: total = total + n — Three packs at $2. The loop adds three times.
- How you learn it. By doing: putting things in order, a number line.
- Length. 3 short steps. Progress saves on this phone.
Part of Python Foundations
Names, order, a loop you can see, and a tiny script that totals a list.