Skip to main content

A small calculator that can do various calculations. Read the README file

Project description

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

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

calc_project_christian-0.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calc_project_christian-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file calc_project_christian-0.0.1.tar.gz.

File metadata

  • Download URL: calc_project_christian-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for calc_project_christian-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b1e583635c233372c1a396529aeb94283ae7b714d2d4fbc53bf279cf80c99a6
MD5 5f9fba98c7ca97cab723969ebca4bd4d
BLAKE2b-256 9a38b0b6cb3f087529400c40ea6ad98b6b111c5c890821de8be7858ccffff64d

See more details on using hashes here.

File details

Details for the file calc_project_christian-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for calc_project_christian-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d37dbf00568bb617612ee55613a8c3c4ecea224100db429ea9e146257c16bc
MD5 f0a11d723968f01917c4421585374d8a
BLAKE2b-256 45116823ad5555c9c927f28abf56b0a1937826ea3ed4c4f4aa9afc64f00920a7

See more details on using hashes here.

Supported by

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