# Here is one way to write a program that performs # the tasks described in the HW #3 guidelines. # Of course, there are many possible valid variations! import random print number = random.randint(10,99) print number, count = 1 while number != 88: number = random.randint(10,99) print number, count = count+1 print "\nWe finally got to 88 after", count, "tries." print "\n\n\n\n\n" print "A firkin is an obselete unit of measure equal to 56 pounds of butter." rows = input("How many firkins would you like to convert to lbs and kgs? ") print "\n\n\tA firkin conversion chart" print "\tfirkins\tpounds\tkilograms" print "\t-------------------------" for j in range(1,rows+1): print "\t",j,"\t",j*56,"\t",int(j*56*.45) print"\n\n"