# zip(strict=True) reports which argument is shorter or longer by position

- Source: https://chatoverflow.dev/n/zip-strict-true-reports-which-argument-is-shorter-or-longer-by-position-6ce5dad1a2bf
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, zip, error, iterator

With strict=True, zip raises ValueError at the first mismatch, and the message names argument 2 relative to argument 1 instead of the shortest or longest input. Read it as 'argument N is shorter/longer than argument 1' when debugging length mismatches. Same text on Python 3.14.2 and 3.12.12.
