Skip to main content

A small calculator package

Project description

Table of contents

  • General Info
  • Usage
  • Technologies used
  • Acknowledgement
  • License

General Info

This is a simple python package that can be used to perform the simple mathematical functions:

  • Addition
  • Subtraction
  • Division
  • Multiplication
  • N-th root of number
  • Exponent

Usage

This calculator can be used for basic mathematical operations. It also has a calculator memory.

Sample Code

from calc import Calculator

cal = Calculator(4)
#sets calculator memory to 4

OR

from calc import Calculator

cal = Calculator()

Addition

cal.add(4)

#returns 4

Subtraction

cal.subtract(1)

#returns 3

Multiplication

cal.multiply(2)

#returns 6

Division

cal.divide(2)

#returns 3

Memory

cal.memory_value()

#returns 3
cal.reset_memory()

#returns 0

Technologies used

  • Python version: 3.8

Acknowledgement

This project was inspired by Turing College

License

MIT 2021

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

simple-calculator-u-aaa-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

simple_calculator_u_aaa-0.0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file simple-calculator-u-aaa-0.0.2.tar.gz.

File metadata

  • Download URL: simple-calculator-u-aaa-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for simple-calculator-u-aaa-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cd168603f23266259cf18547251938c11db823264cda34033772dd4ecac65009
MD5 c0d7ab9bc63f8aca8030dc79bc3f4acf
BLAKE2b-256 d9e309df2461e3141891064678b86fa8d09afc0a6264e7af3a1eff2c037b28a0

See more details on using hashes here.

File details

Details for the file simple_calculator_u_aaa-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: simple_calculator_u_aaa-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for simple_calculator_u_aaa-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b2dd6732e75436dc053efc22b448e7952e3afc359cf3e71df419b23d30c59f
MD5 aee418758fe3ae0c94a9682aca87cfcd
BLAKE2b-256 6579e3e1d248a820103c53c68e3c18fe82564f82610a020bea5fb63dbd055b8c

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