All challenges
Multiple ChoiceBeginner 30s

Generator Expression

Choose the best answer for: generator expression
Options
  1. 1Generators use the yield keyword only
  2. 2(x*2 for x in range(5)) is a generator
  3. 3[x*2 for x in range(5)] is a generator
  4. 4{x*2 for x in range(5)} is a generator

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