What is the output?
print(list(zip([1, 2, 3], 'ab')))
- [(1, 'a'), (2, 'b')]
- [(1, 'a'), (2, 'b'), (3, '')]
- [(1, 'ab'), (2, None)]
- Error
zip stops at the shortest input, so the trailing 3 is dropped.
Play Problem Solving ▸
print(list(zip([1, 2, 3], 'ab')))