p1 = (0, 10, 1)
p2 = (0, -20, -2)
p3 = (0,10,2)
Hi,
I have the above code and I'd simply like a quick way to count how many items are in each range without iterating through it? (its part of a few nested loops). So p1 would return 9.
Also is there a better way to pass those variables in to the range function?
right now i'm suing:
range(p1[0], p1[1], p1[2])