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
for i in range(30, 52) + range(1, 18): #something