Please enable JavaScript to use CodeHS

Intro to Computer Science in Python 3

Lesson 9.2 List Comprehensions

Description

In this lesson, students will learn how to use list comprehensions to alter the items in a list with one line of code.


Objective

Students will be able to:

  • Perform list comprehensions in order to alter all items in a list at once