Open this example in the interactive library
Source code
try:
print(list(zip(['x', 'y'], [1], strict=True)))
except ValueError as error:
print(error)Sample output
zip() argument 2 is shorter than argument 1

Open this example in the interactive library
try:
print(list(zip(['x', 'y'], [1], strict=True)))
except ValueError as error:
print(error)zip() argument 2 is shorter than argument 1