Calculator class package with basic functions
Project description
#Calculator
Create instances of calculator as a class in python.
###Functions included:
- add - sums calculator memory with provided value.
- minus - subtracts the entered value from calculator memory.
- multiply - multiplies calculator memory by the input value.
- divide - devides the calculator memory by the input value.
- root - takes n root from the calculator memory value (square root is taken when no input given).
- reset - Resets calculator instance memory to zero.
Each function adjusts the calculator memory, as well as returns the new value.
###Installation TBU
pip install calculator
###Usage TBU
import calculator calc_obj = Calculator()
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
calculator_rm-0.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for calculator_rm-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e42778f0bedd4f5b88215e51e7b44230f8c0a068f9ad920483523ad34ecf6d7 |
|
MD5 | ee03eb8f3f45444167596bc8eb90ab95 |
|
BLAKE2b-256 | 35232f1e2f750d7c18e98091f01962383261eb1fd795c7b5e518f5f1ce847132 |