Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

divisionbeads-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file divisionbeads-0.1.2.tar.gz.

File metadata

  • Download URL: divisionbeads-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for divisionbeads-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3209283ac096cb6100fb77c9de91738fee519ff6732bad277a5f6447f52f490b
MD5 c38a05c7a76fd510aefa0aaafcb21384
BLAKE2b-256 afcd1f6bb47cdd1d6727f9c186a6d67366f06225a669f690be8ce0fc414f00b8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page