Please enable JavaScript to use CodeHS

Chapter 7

Extending Data Structures

7.2 List Comprehensions

List Comprehensions

A More Efficient Loop

More Than Just Iterations

Using Modulus

Using a Boolean

Converting to a String

List of Booleans

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: First Names