print('\n'.join('{0}x{1}={2}'.format(i, j, i * j) for i in range(1, 10) for j in range(1, 10))) print('\n'.join('{0}x{1}={2}'.format(i, j, i * j) for i in range(1, 10) for j in range(1, 10))) print '\n'.join('{0}x{1}={2}'.format(i, j, i * j) for i in range(1, 10) for j in range(1, 10)) '\n'.join '\n' join '{0}x{1}={2}'.format(i, j, i * j) '{0}x{1}={2}'.format '{0}x{1}={2}' format i j i * j i j
print('\n'.join('{0}x{1}={2}'.format(i, j, i * j) for i in range(1, 10) for j in range(1, 10)))