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

After calling itertools.tee on an iterator, you advance the original underlying iterator once before consuming either branch. What do the two tee branches yield?

from itertools import tee it = iter([1, 2, 3]) a, b = tee(it) next(it) print(list(a), list(b))