I have two lists in Python, like this:
RG = [30, 30, 30, 50, 50, 50, 70, 70, 80, 80, 80]
EC = [2, 2, 2, 25, 25, 25, 30, 30, 10, 10, 10]
and I want to iterate over then with an auxiliar variable, like i, because when some condition is met (like EC is different of RG), I want that this iteration go to another element that it's not the next one. Like:
for i in ?:
// code
if EC != RG:
i = i + 5;
// code
I already saw zip function, but I didn't found how to do this using it, because this function is an iterable.
for i in range(zip(RG, EC)): if EC[i] != RG[i]: i=i+5; # codeTypeError: 'zip' object cannot be interpreted as an integerlen(zip...my badTypeError: object of type 'zip' has no len()len(list(zip...