Skip to main content

Simple Calculator

This is a simple calculator that can add, subtract, multiply, divide and take the nth root of a number. It's a part of a school project at https://turingcollege.com.

In the notebook run the first code cell Then in the second code cell you can use:

  • calc.add()
  • calc.sub()
  • calc.multi()
  • calc.div()
  • calc.root()
  • calc.reset()

They all take 1 argument except for calc.reset() which takes 0 arguments and calc.root which takes 2. The first argument in calc.root is the root and the second argument is the value. calc.root will not be saved in the memory.

The Calculator also has it's own memory, so it will start from 0 and will do the calculations from it's memory as you go until you use calc.reset()

Examples: -- calc.add(5) 5

-- calc.sub(2) 3

-- calc.multi(2) 6

-- calc.div(2) 3

-- calc.reset() 0

-- calc.root(2, 25) 5

Release files for calc-project-christian 0.0.1

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

Source distribution (sdist)

Source distribution for calc-project-christian 0.0.1
File Size Uploaded
calc_project_christian-0.0.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calc-project-christian 0.0.1
File Interpreter ABI Platform
calc_project_christian-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / calc_project_christian-0.0.1.tar.gz

Download URL calc_project_christian-0.0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5b1e583635c233372c1a396529aeb94283ae7b714d2d4fbc53bf279cf80c99a6
BLAKE2b-256 checksum
How to use checksums
9a38b0b6cb3f087529400c40ea6ad98b6b111c5c890821de8be7858ccffff64d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / calc_project_christian-0.0.1-py3-none-any.whl

Download URL calc_project_christian-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4d37dbf00568bb617612ee55613a8c3c4ecea224100db429ea9e146257c16bc
BLAKE2b-256 checksum
How to use checksums
45116823ad5555c9c927f28abf56b0a1937826ea3ed4c4f4aa9afc64f00920a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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