Python基础 · free preview

Repeating Actions with Loops

Explain what a `for` loop does. Correctly write `for` loops to repeat simple calculations. Trace changes to a loop variable as the loop runs. Trace changes to other variables as they are updated by a `for` loop.

1. Overview

Overview

2. What's in a name?

What's in a name?

3. From 1 to N

From 1 to N

4. Understanding the loops

Understanding the loops

5. Computing Powers With Loops

Computing Powers With Loops

6. Summing a list

Summing a list

7. Computing the Value of a Polynomial

Computing the Value of a Polynomial

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free