#coding:utf-8

import itertools
r = range(1,10)
for (x,y) in itertools.product(r,r):
	print('{}x{}={}'.format(x,y,x*y)) import itertools itertools r = range(1,10) r range(1,10) range 1 10 for (x,y) in itertools.product(r,r):
	print('{}x{}={}'.format(x,y,x*y)) (x,y) x y itertools.product(r,r) itertools.product itertools product r r print('{}x{}={}'.format(x,y,x*y)) print '{}x{}={}'.format(x,y,x*y) '{}x{}={}'.format '{}x{}={}' format x y x*y x y r = range(1,10) range(1,10) r
#coding:utf-8

import itertools
r = range(1,10)
for (x,y) in itertools.product(r,r):
	print('{}x{}={}'.format(x,y,x*y))