for pre in range(1, 10):
    for post in range(1, 10):
        print('{}x{}={}'.format(pre, post, pre * post)) for pre in range(1, 10):
    for post in range(1, 10):
        print('{}x{}={}'.format(pre, post, pre * post)) pre range(1, 10) range 1 10 for post in range(1, 10):
        print('{}x{}={}'.format(pre, post, pre * post)) post range(1, 10) range 1 10 print('{}x{}={}'.format(pre, post, pre * post)) print '{}x{}={}'.format(pre, post, pre * post) '{}x{}={}'.format '{}x{}={}' format pre post pre * post pre post
for pre in range(1, 10):
    for post in range(1, 10):
        print('{}x{}={}'.format(pre, post, pre * post))