Multiple ChoiceIntermediate 30s
itertools.cycle
Choose the best answer for: cycle()
Options
- 1cycle is deprecated in favor of itertools.repeat
- 2cycle(iterable) repeats iterable infinitely
- 3cycle runs over the iterable exactly once and stops
- 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.