Skip to main content

Simple Calculator with memory

Project description

Calculator

Simple calculator with basic mathematics operations and its own memory.

Installation

Use the package manager pip to install calculator.

pip install calculator

Usage

from calculator import Calculator

#first create an instance of Calculator
x = Calculator()

x.add(1,3) # returns 4 (sum of 1 and 3) and saves it to memory
x.sub(1) # returns 3 (subtracts 1 from "memory")

License

MIT

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

calculator-anarim1-0.0.1.tar.gz (59.4 kB view hashes)

Uploaded Source

Built Distribution

calculator_anarim1-0.0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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