All challenges
Multiple ChoiceIntermediate 30s

itertools.cycle

Choose the best answer for: cycle()
Options
  1. 1cycle is deprecated in favor of itertools.repeat
  2. 2cycle(iterable) repeats iterable infinitely
  3. 3cycle runs over the iterable exactly once and stops
  4. 4cycle returns a dict mapping element to its index

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