My question is this:
If for example we have a list of numbers in order from 1 to 1200 like: 1,2,3,4,5,...,1200 How can we extract for a specific size (lets say 400) the following chunks in python: 1-400, 200-600, 400-800, 600-1000, 800-1200
what i made so far is this:
a = [i for i in range(1200)]
swift_number = 400
num1 = 0
num2 = num1 + swift_number
while (len(a) - num1) > swift_number:
print "getting numbers from %s to %s", num1, num2
num1 = num2 - swift_number / 2
num2 = num1 + swift_number