from itertools import product
from operator import mul

for v in map(lambda x: (x[0], x[1], mul(*x)), product(range(1, 10), repeat=2)):
    print("{}x{}={}".format(*v)) from itertools import product from operator import mul for v in map(lambda x: (x[0], x[1], mul(*x)), product(range(1, 10), repeat=2)):
    print("{}x{}={}".format(*v)) v map(lambda x: (x[0], x[1], mul(*x)), product(range(1, 10), repeat=2)) map lambda x: (x[0], x[1], mul(*x)) (x[0], x[1], mul(*x)) x[0] x 0 x[1] x 1 mul(*x) mul *x x x product(range(1, 10), repeat=2) product range(1, 10) range 1 10 repeat=2 repeat 2 print("{}x{}={}".format(*v)) print "{}x{}={}".format(*v) "{}x{}={}".format "{}x{}={}" format *v v
from itertools import product
from operator import mul

for v in map(lambda x: (x[0], x[1], mul(*x)), product(range(1, 10), repeat=2)):
    print("{}x{}={}".format(*v))