prints an N x N multiplication table
Project description
times-table
A utility to print a nicely formatted n-by-n times-table for any base from two to sixty-two.
optional arguments:
--base N, -b N The base of the number system. Base must be in range [2, 62]. (default=10).
--size N, -n N The largest number in the table. Must be greater than 1. (default=13).
--primes only print out the multiplication table for prime numbers
--limit MAX Limit printing the table to numbers of length MAX-digits or less
Installing times-table
python3 -m pip install timesTable
If you already have times-table installed, upgrade to newer versions like this:
python3 -m pip install timesTable --upgrade
It's recommended to install into a local venv, or if installing systemwide
as the super-user to make a venv in /usr/local/venv, and install it there.
For some helpful hints about how to do this see the
addendum
in the lsseq repo.
Testing times-table
Running times-table on the command line should show you this.
$ times-table
* | 2 3 4 5 6 7 8 9 10 11 12 13
----+-------------------------------------------------------------
2 | 4* 6 8 10 12 14 16 18 20 22 24 26
3 | 6 9* 12 15 18 21 24 27 30 33 36 39
4 | 8 12 16* 20 24 28 32 36 40 44 48 52
5 | 10 15 20 25* 30 35 40 45 50 55 60 65
6 | 12 18 24 30 36* 42 48 54 60 66 72 78
7 | 14 21 28 35 42 49* 56 63 70 77 84 91
8 | 16 24 32 40 48 56 64* 72 80 88 96 104
9 | 18 27 36 45 54 63 72 81* 90 99 108 117
10 | 20 30 40 50 60 70 80 90 100* 110 120 130
11 | 22 33 44 55 66 77 88 99 110 121* 132 143
12 | 24 36 48 60 72 84 96 108 120 132 144* 156
13 | 26 39 52 65 78 91 104 117 130 143 156 169*
Now you can play with the various options. Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timestable-2.0.0.tar.gz.
File metadata
- Download URL: timestable-2.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38019a7d085d0e12ecd189ceaf76eebf0d562aa3a1c8aa619af9604fb09cf14d
|
|
| MD5 |
a764d2b1cb246e56e2d3c7c052c54ad5
|
|
| BLAKE2b-256 |
df78a4bb5e278b4e9e6e3b4496e7f861aded907bedd3ee97a5371db22f0b18ba
|
File details
Details for the file timesTable-2.0.0-py3-none-any.whl.
File metadata
- Download URL: timesTable-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b4852db25547294d9df228513b48826886d122cd917fe2e917d09f3bf3b00c
|
|
| MD5 |
cacd0f25f1f3328cb5fa552af690f021
|
|
| BLAKE2b-256 |
48843a51f8ab5d6261d13f3f139c8a26462db13f0736dcd098dd01d6426a50c5
|