>>> n = 5 >>> while n <= 10: print "%d x 10 = %d" % (n, n*10) n = n + 1