In the following example, why is the ValueError only raised on the last line rather than when Z
is created?
l1 = [3]
l2 = [1,2]
Z = zip(l1, l2, strict=True)
Zlist = list(Z)
In the following example, why is the ValueError only raised on the last line rather than when Z
is created?
l1 = [3]
l2 = [1,2]
Z = zip(l1, l2, strict=True)
Zlist = list(Z)