251211 Python 12 x Tables program

paulramnora

London, United Kingdom

  • Artist
    Notes
  • Artwork Comments 3

Artist's Description

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.


DOWNLOAD

Python, is a FREE programming language which you can download from…

http://www.python.org


NOTES

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…

range(12,13*12,12)

…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
printf(1+1); -C
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.

Artwork Comments

  • jwalrave
  • paulramnora
  • paulramnora
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait

10% off

for joining the Redbubble mailing list

Receive exclusive deals and awesome artist news and content right to your inbox. Free for your convenience.