Skip to main content

divisonbeads

A small Python CLI app of the "divison beads" math education tool.

By Al Sweigart al@inventwithpython.com

"Division beads" are a concept I came up with to visualize divison. A string of beads is laid out in a rectangular area. The quotient and remainder can be found through simple counting. For example:

$ python3 -m divisionbeads
Enter a division problem (example: 23 / 7) or QUIT.
> 23 / 7

23 / 7 = 3 r 2

 ├─────7─────┤

 O─O─O─O─O─O─O┐ ┬
┌O─O─O─O─O─O─O┘ 3
└O─O─O─O─O─O─O┐ ┴
           O─O┘

           ├2┤

Enter a division problem (example: 23 / 7) or QUIT.
> 40 / 10

40 / 10 = 4 r 0

 ├────────10───────┤

 O─O─O─O─O─O─O─O─O─O┐ ┬
┌O─O─O─O─O─O─O─O─O─O┘ 4
└O─O─O─O─O─O─O─O─O─O┐ │
 O─O─O─O─O─O─O─O─O─O┘ ┴


 0

Enter a division problem (example: 23 / 7) or QUIT.
> 42 / 10

42 / 10 = 4 r 2

 ├────────10───────┤

 O─O─O─O─O─O─O─O─O─O┐ ┬
┌O─O─O─O─O─O─O─O─O─O┘ 4
└O─O─O─O─O─O─O─O─O─O┐ │
┌O─O─O─O─O─O─O─O─O─O┘ ┴
└O─O

 ├2┤

Enter a division problem (example: 23 / 7) or QUIT.
> quit

Metadata

Release files for divisionbeads 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for divisionbeads 0.1.3
File Size Uploaded Provenance Actions
divisionbeads-0.1.3.tar.gz 4.0 kB Without provenance Details for divisionbeads-0.1.3.tar.gz

Release files / divisionbeads-0.1.3.tar.gz

Download URL divisionbeads-0.1.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
880ef44b9286bc4e988e07c2835f5cc274f7b32cb65b0d53918ca004979b310f
BLAKE2b-256 checksum
How to use checksums
dd3eee3d40bbc0a7a3a0d1bc3669cc8b359de5316db1bfd348de8b8059debdda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.1

Security for divisionbeads 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page