Python Advanced Lesson 2 of 12

Python list comprehensions

25 min, 6 exercisesCode

A four-line loop whose only job is to build a new list.

The rest of this lesson is locked.

6 exercises, checked as you type.

Sign in

Python 3.13