def antsmarch(n): verse="" if n==1: verse="suck his thumb," if n==2: verse="tie his shoe," if n==3: verse="take a knee" if n==4: verse="tend to his sore" if n==5: verse="because his friends arrive" if n==6: verse="get lunch at Rick's" if n==7: verse="greet his pal Kevin" if n==8: verse="put on his skates" if n==9: verse="to end all crime" if n==10: verse="check the ink in his pen" print("The ants go marching",n,"by",n,"hurrah! hurrah!\nThe ants go marching",n,"by",n,"hurrah! hurrah!\nThe ants go marching",n,"by",n,"\nThe little one stops to ",verse,"\nAnd they all go marching down...\nIn the ground...\nTo get out...\nOf the rain.\nBoom! Boom! Boom!") for n in range(1,11): print(antsmarch(n))