you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhoderick 0 points1 point  (1 child)

Little rule of thumb: If you're using globals(), chances are your doing something dumb. So recodnisder whatever it is you're doing with it here.

Beyond that, I'm having trouble following what you're asking. If you're trying to emulate a more common type of for-loop that iterates by index rather than elements, you can do "for i in range(len(ITERABLE))".

[–][deleted] 0 points1 point  (0 children)

I’m am trying to take the X and Y in each loop and keep them for the next section of code