for num in list(range(10)): line = "The ants go marching "+str(num)+" by "+str(num) for y in list(range(2)): print(line+" Hurrah! Hurrah!") print(line+", blah blah something that rhymes with "+str(num)) print("And they all go marching down into the ground") print(" to get out of the rain\n")