What is list comprehension in Python?
List comprehensions build lists concisely from an iterable, often replacing small loops plus append calls.
- Compact loop expression
- Can include filter condition
- Readable only when kept simple
What is list comprehension in Python?