# Here is one way to write a program that performs # the tasks described in the HW #2 guidelines. # Of course, there are many possible valid variations! for j in range(100,0,-1): if j>1: print j, "bottles of beer on the wall,", j, "bottles of beer." print "Take one down, pass it around,", j-1, "bottles of beer on the wall." else: print "1 bottle of beer on the wall, 1 bottle of beer." print "Take one down, pass it around, no more bottles of beer on the wall!" print num = input("Please enter a three-digit number: ") print "The following numbers divide evenly into", num for j in range(1,num+1): if num%j == 0: print j, print print print "Here is a list of all suave numbers:", for tens in range(1,10): for units in range(0,10): number = 10*tens + units if tens**2 + units**2 + tens*units == number: print number,