I am trying to increase a variable in a for loop dynamicly .
first iteration: i=i+4
second iteration: i= i+5
third iteration i= i+6 ....
Trying:
first iteration
for i in d: # d has lenght 2
i=i+4 # i = 17
sheet.insert_rows(idx=i, amount=1)
after the first iteration the value of i is now 23.
now do this:
second interation
for i in d: # d has lenght 2
i=i+5 # i = 28
sheet.insert_rows(idx=i, amount=1)
for i in dgivesithe values contained ind.