All challenges
Multiple ChoiceIntermediate 30s

Generators

A generator function returns a:
Options
  1. 1A coroutine object awaiting it to run
  2. 2A tuple of all values already materialized
  3. 3Iterator that yields values lazily
  4. 4A list of all values computed eagerly

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