I have the zip
object:
L_RANGES = zip(range(10, 20), range(11, 21))
First call of L_RANGES
is ok:
print(type(L_RANGES))
for a, b in L_RANGES:
print(a, b)
Output:
<class 'zip'>
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
Bu the next calls do not display anything. Is there any way to maintain or reset that. So far I can just convert it to the list:
L_RANGES = list(zip(range(10, 20), range(11, 21)))