Implementation code:
# 九九乘法表 for i in range(1, 10): for j in range(1, i+1): print('{}x{}={}\t'.format(j, i, i*j), end='') print()
The output results are as follows:
Recommended tutorial: python tutorial
The above is the detailed content of How to output the multiplication table in python. For more information, please follow other related articles on the PHP Chinese website!