EasyOutput prediction

zip stops at the shortest iterable

What does this code print?

a = [1, 2, 3]
b = ['x', 'y']
print(list(zip(a, b)))

← → arrow keys to navigate

Sign in to save your progress.

zip stops at the shortest iterable - Python Iterators & Generators Quiz | Unnested