This is a 12 times tables program I wrote using the Python programming language.
NOTE: This program does not printout the whole of the 12 x Tables going from 1 up to 12; but, instead, it merely prints out a part of the 12 x Tables…showing 1×12/2×12/…/upto 12×12. To edit the program to printout a different set of tables just change the ‘tables’ variable to say a different number. Eg. tables=4…would printout the 4 times tables, instead.
Python, is a FREE programming language which you can download from…
I really love using Python to program with in many ways; because I love it’s sheer ‘simplicty’. For example, the above program, to produce the exact same output, could actually have been written all in one single line…
…however, I deliberately chose to break it down into using variables; so that other people who are non-Python programmers will be able to understand exactly what’s going on.
Let me give you another example, in most languages to write a simple program such as 1+1…you have to add extra words/or, brackets:
PRINT 1+1 – BASIC
writeln(1+1) – Pascal
…but, using a language as simple as Python; it’s as easy and perfectly straight forwards as…
>>>1+1 …press Enter key
2 …you are immediately given the answer
>>> …prompt waiting for next Python instruction to be run
Python is a really cool programming language in this sense.