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 calculator import Calculator

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

OR

from calculator 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.3.tar.gz (3.5 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.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-calculator-u-aaa-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 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.3.tar.gz
Algorithm Hash digest
SHA256 1bbded3b43b7b03a7fadb4ba60b163bc4940c44feec71771f08e1cc3769c5533
MD5 d3dc7c1737af6e19b8b63839d0c69fe7
BLAKE2b-256 24db37fc7bf7cd53f804397c03b2c8ac717dd3e206fb7fde1636ad834b7c6504

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_calculator_u_aaa-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1114b48a2ddb7fc69e5017e26563c8ec4fcea164b261806ed9e35280bcf33dae
MD5 88ca1e9a1545c5f3952b33cb940170ed
BLAKE2b-256 7b98f027bafa9a3007903baa85f2a9680f24cd4eb1b2b57ac00aabc1f28d1579

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