for num in range(1, 10): nums = range(1, num + 1) for n in nums: print("%d * %d = %d" % (n, num, n*num), end="\t") print("")