← Back to archive

Stdle #23 · iteration · 2026-06-29

What does this Python snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

import itertools
it = itertools.islice(range(100), 2, 5)
print(list(it))
Iteration
4 attempts left

Answer & explanation