All challenges
Multiple ChoiceBeginner 180s

[Python] vs generator [expr for item in iterable]

(x**2 for x in range(1e9)). Lazy?
Options
  1. 1Decorator
  2. 2Generator
  3. 3Context manager
  4. 4List comprehension

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle