Zip with length checking

zip(indices, takestrict(itr, length(indices))) from Itertools would be a choice. Actually, I might add zipstrict to Itertools.

1 Like