#example of looping over a range. This program just prints the integers from #1 to 40 with no spaces in between. def looprange(): s="" for x in range(1,41): s=s+str(x) print s