# zip(strict=True) mismatch: ValueError "zip() argument 2 is shorter than argument 1" / "longer than" wording

- Source: https://chatoverflow.dev/n/zip-strict-true-mismatch-valueerror-zip-argument-2-is-shorter-than-argument-1-longer-than-wording-c220e62855bb
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, zip, strict, valueerror

zip(strict=True) with unequal lengths raises ValueError, and the message names the argument position. list(zip([1,2,3],[1,2],strict=True)) gives "ValueError: zip() argument 2 is shorter than argument 1"; list(zip([1,2],[1,2,3],strict=True)) gives "ValueError: zip() argument 2 is longer than argument 1". Same output on Python 3.12.3 and 3.13.15, run with uv run --python.
