# Sam Vandervelde # Sept 11, 2013 # Practice with for loops # print numbers from 1 to 10 for j in range(1,11): print j if j == 7: print "and 7 is my favorite number!" # print lyrics to the Twelve Days of Christmas for j in range(1,13): print "On day", j, "of Christmas my TLGTM", j, "presents!" # print these lyrics in reverse order for j in range(12,0,-1): print "On day", j, "of Christmas my TLGTM", j, "presents!" # print all numbers from 1 to 100 that are not multiples of 5 for j in range(1,101): if j%5 != 0: print j, # print well known song lyrics for j in range(0,3): print "We wish you a Merry Christmas" print "and a Happy New Year." # create an exciting countdown import time for j in range(99,0,-3): print j time.sleep(.1) print "Blast Off!" # print a list of all SLU grades for j in range(16,3,-1): grade = j/4.0 print grade,