7.2 List Comprehensions
-
Incorrect
Correct
No Answer was selected
Invalid Answer
1. Python and Console Interaction
2. Conditionals
3. Looping
4. Functions and Exceptions
5. Strings
6. Creating and Altering Data Structure
7. Extending Data Structures
7.1 2D Lists
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
Exercise: First Names
7.3 Packing and Unpacking
7.4 Dictionaries
7.5 Equivalence vs. Identity
7.6 Conclusion
Chapter 7