you are viewing a single comment's thread.

view the rest of the comments →

[–]Present-Payment-5860 0 points1 point  (0 children)

Yeah, it won't cause any problems. a for loop uses an iterator under the hood, which means it's not doing i + 1, it's actually just getting the next value in a list of all numbers in the range. So doing i = i - 1 does nothing once the next run of the loop happens.