row = 5 column = 6 for i in range(1, row + 1): for j in range(1, column + 1): print ('(', i, ',', j, sep="", end='); ') print() # Move cursor to next row #sep="" means no space between seperations print("----------------") # Print a size x size multiplication table for i in range(1, row + 1): for j in range(1, column + 1): product = i*j # Compute product print (i, 'x', j, sep="", end='=') print('{0:2}'.format(product), end='; ') # Display product print() # Move cursor to next row