Classic Early School multiplication table using Python
In [1]: def multi_table(n): ...: for i in range(1,17,1): ...: print(i,"*",n,"=",i*n) ...: In [1]: multi_table(10)
1 * 10 = 10 2 * 10 = 20 3 * 10 = 30 4 * 10 = 40 5 * 10 = 50 6 * 10 = 60 7 * 10 = 70 8 * 10 = 80 9 * 10 = 90 10 * 10 = 100 11 * 10 = 110 12 * 10 = 120 13 * 10 = 130 14 * 10 = 140 15 * 10 = 150 16 * 10 = 160
No comments:
Post a Comment