1st sprint project Turing College Calculator
Project description
Calculator with running memory
Functions:
- .add
- .subtract
- .multiply
- .n_root
- .get_current_result
- .get_action_seq - returns action sequence as a string Example: 4 + 2 + 3 - 2 = 7
- .reset_memory - resets running memory and action sequence
Installation
pip install sarunasncalculator
Usage
You can initialize calculator with any starting point you want.
from sarunasncalculator.calculator import Calculator
callc = Calculator(2)
callc.add(2) # running memory would be 4
callc.subtract(1) # running memory would be 3
print(callc.get_action_seq) # would return 2 + 2 - 1 = 3
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 sarunasncalculator-0.0.1.tar.gz.
File metadata
- Download URL: sarunasncalculator-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d586f67f3d47449e216751c61ebba8c7b5744a81fb2851053e9f263e9b4304
|
|
| MD5 |
9048420b44d6dac16befddaf0af265db
|
|
| BLAKE2b-256 |
d70e9e9ed05c2b7ae846cc8bbd9b7ca77a28c97e52323c277c4c89974d9f8539
|
File details
Details for the file sarunasncalculator-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: sarunasncalculator-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
375e70a48e2985f4aa86238b63adb16e91e3b5c6a927d9bad9c9aa71ba478961
|
|
| MD5 |
bbe04e17a0195bab4d9e5473ffb3e36a
|
|
| BLAKE2b-256 |
51f9922120579322b70a89797da8e1879fc55c4ac9febe6add61132106e6818e
|