import itertools

for x, y in itertools.product(range(1, 10), range(1, 10)):
    print("%dx%d=%d" % (x, y, x * y)) import itertools itertools for x, y in itertools.product(range(1, 10), range(1, 10)):
    print("%dx%d=%d" % (x, y, x * y)) x y itertools.product(range(1, 10), range(1, 10)) itertools.product itertools product range(1, 10) range 1 10 range(1, 10) range 1 10 print("%dx%d=%d" % (x, y, x * y)) print "%dx%d=%d" % (x, y, x * y) "%dx%d=%d" (x, y, x * y) x y x * y x y
import itertools

for x, y in itertools.product(range(1, 10), range(1, 10)):
    print("%dx%d=%d" % (x, y, x * y))