Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonitertoolsSingle-choice MCQ

What does this combination of itertools.tee and list do?

from itertools import tee gen = iter(range(3)) a, b = tee(gen, 2) print(list(a)) print(list(b))