Lesson 3 of 145 min

Lists, loops and if

A list keeps values in order; a for loop runs the indented lines under it once for each value, and an if runs its own only when its test is True.

After this lesson you can read and write a list, a for loop and an if, and say which lines run.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 1: Score a chatbot's answers, which comes next.

Facts last checked on .