Maybe it would be weird to ask this question, as certainly I don't understand it.
for example, if we have a=[(1,2), (3,4)]; the operation works
for x,y in a:
print(x,y)
But as soon as the we add any further elements to those tuples, a=[(1,2,3),(4,5,6)]
for x,y in a:
print(x,y)
---------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to unpack (expected 2)
But working with zip(a[0],a[1]) works
I see that this question has been asked many times before but I couldn't find any that takes on why len with more than 2 doesn't work.
can anyone explain to me as to why it is?