ValueError: too many values to unpack

ValueError: too many values to unpack

Usually caused by an unequal number of elements.
For example:
when a tuple is assigned to a tuple variable, the result is that there are not enough elements in a tuple. As shown above.

Another example: the
dictionary items() function returns a traversable array of (keys, values) tuples in a list.


Read More: