calc = "{}x{}={}"

for i in range(1,10):
    for j in range(1,10):
        print(calc.format(i,j,i*j)) calc = "{}x{}={}" calc "{}x{}={}" for i in range(1,10):
    for j in range(1,10):
        print(calc.format(i,j,i*j)) i range(1,10) range 1 10 for j in range(1,10):
        print(calc.format(i,j,i*j)) j range(1,10) range 1 10 print(calc.format(i,j,i*j)) print calc.format(i,j,i*j) calc.format calc format i j i*j i j calc = "{}x{}={}" "{}x{}={}" calc
calc = "{}x{}={}"

for i in range(1,10):
    for j in range(1,10):
        print(calc.format(i,j,i*j))