Thursday, 5 September 2013

Python "for loop" with two variables

Python "for loop" with two variables

I searched for this online and on here but found no good answer. Further
the "zip" command seems to help with dealing with an (x, y) coordinate
type of situation.
So how can I include two variables in the same for loop:
i.e.
for i in range(x) and for j in range(y):
Thanks in advance

No comments:

Post a Comment