I have a tuple of arrays like the following:
z = (array( [ [1], [2], [3]] ),
array( [[10],[11],[12]] )
)
I want to iterate over them with a simple for loop using two variables:
for x, y in z:
print("it worked")
self.doStuff(x, y)
... but it throws the error:
ValueError: too many values to unpack (expected 2)
I have googled this error. Many seem to suggest the .split() method or .items(). I'm not really sure, where to add those, since the don't belong to tuples. How can I execute this for-loop properly? Thanks for your help.