I have a couple of simple loops like so:
for i in range (30, 52):
#do some stuff here
for i in range (1, 18):
#do some more stuff
<
From https://docs.python.org/2/library/itertools.html#itertools.chain :
Make an iterator that returns elements from the first iterable until it is exhausted, then proceeds to the next iterable, until all of the iterables are exhausted. Used for treating consecutive sequences as a single sequence.
Example:
import itertools as it
for i in it.chain(range(30, 52), range(1, 18)):
print(i)