-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Instead of the counter you could use zip. here's copy-paste from an ipython prompt for an example.
In [9]: for item in zip([1,2,3],['a','b','c']):
...: print item
...:
(1, 'a')
(2, 'b')
(3, 'c')
including this example since your test has a 3 item tuple but the tests/test.json has 4 elements.
In [10]: for item in zip([1,2,3],['a','b','c','d']):
print item
....:
(1, 'a')
(2, 'b')
(3, 'c')
btw, asked around and was told that you could use itertools.izip if you want an iterable instead of a list.
Metadata
Metadata
Assignees
Labels
No labels