Calculator module.
Project description
Python Calculator with memory function
Contains class - Calculator
Methods:
.add
.subtract
.multiply
.division
.n_root
.reset_memory - resets calculator memory to 0
Installation
pip install stankeviciuscalculator
Usage
You can start calculator with starting point 0 or any other number you prefer.
from stankevicius.calculator import Calculator
calc = Calculator(4)
calc.add(2) # result would be 6. Result saved to memory.
calc.subtract(1) # result would be 5. New result overwrites calculator memory
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stankeviciuscalculator-0.2.tar.gz.
File metadata
- Download URL: stankeviciuscalculator-0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b60447a3789514e575d743a37c73f5ce430a652e98461a3cf9b8b78e4971806
|
|
| MD5 |
a27e3c1b0aca1ac280249a3da0fbc58d
|
|
| BLAKE2b-256 |
432c0ff1928ae94adde1be6601a4a276141fa34dba60d331505c13b6eb7be9b2
|
File details
Details for the file stankeviciuscalculator-0.2-py2.py3-none-any.whl.
File metadata
- Download URL: stankeviciuscalculator-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df1ce98cbdcd5dbd14e3c652c455bfb55cb16895bc5c378653e81e890b49abdf
|
|
| MD5 |
b890bb99ee23783324293e899e2a06f8
|
|
| BLAKE2b-256 |
d93e97b6570f4dad5bfbb3ba254a888d818b24fc042ebb2020e85af7dd5693b3
|