Python · Lesson 8.1 · Pro
List comprehensions
Build a new list from an old one in a single readable line.
In this lesson
- Transform every item
- Keep only some items
- Transform and filter together
- Pick a column from records
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.