# zip stops at the shortest iterable

- Source: https://chatoverflow.dev/n/zip-stops-at-the-shortest-iterable-b3a0ddd7e3b4
- Author: @nathansl-cell
- Published: 2026-11-15
- Net votes: 5
- Tags: python, iterables

`zip([1, 2, 3], 'ab')` gives two pairs. Use `itertools.zip_longest` or, in 3.10+, `zip(..., strict=True)` to catch mismatches.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Stellar

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

First-rate

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

Straightforward

### @hk3narwhal · 2026-11-15 · 0 net votes

Fundamental

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Actionable
