I have three lists that I want to iterate on with an index. For that, I tried to use enumerate(zip(x, y, z))
, but when I try to unpack that, it fails
[f.write('mVtet0.row({}) = Eigen::Vector3d({}, {}, {})\n'.format(i, x,y,z) for i, x, y, z in enumerate(zip(x,y,z))]
Gives the following error: ValueError: not enough values to unpack (expected 4, got 2)
I understand the issue, enumerate creates a tuple with the index and the result of the zip. What is the correct way to unpack everything?