Calculator
Arithmetic calculator with operations add, subtract, divide, multipy and root.
Installation
pip install calculator_olu_ile
Usage
For example: Addition with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> cal.add(2)
>>> print(cal.accum)
2
>>> cal.add(2)
>>> print(cal.accum)
4
For example: Subtraction with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> cal.subtract(2)
>>> print(cal.accum)
-2
>>> cal.subtract(2)
>>> print(cal.accum)
-4
For example: Multiplication with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> cal.multiply(2)
>>> print(cal.accum)
0
>>> cal.accum = 2
>>> cal.multiply(2)
>>> print(cal.accum)
4
For example: Divide with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> cal.divide(2)
>>> print(cal.accum)
0.0
>>> cal.accum = 2
>>> cal.divide(2)
>>> print(cal.accum)
1.0
For example: Root with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> cal.accum = 9
>>> cal.root(2)
>>> print(cal.accum)
3.0
For example: Is_input_valid with package on IDLE
>>> from calculator_olu_ile.calculator import Calculator
>>> cal = Calculator()
>>> print(cal.is_input_valid("text"))
False
>>> print(cal.is_input_valid(6))
True
Metadata
Release files for calculator_olu_ile 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calculator_olu_ile-0.2.1.tar.gz | 6.3 kB | Without provenance | Details for calculator_olu_ile-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calculator_olu_ile-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for calculator_olu_ile-0.2.1-py3-none-any.whl |
Total release size: 10.0 kB
Release files / calculator_olu_ile-0.2.1.tar.gz
| Download URL | calculator_olu_ile-0.2.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d456c71aa1639208a2b81b0634ce0b5cc4e5a6a977404dc08c05b2729378a10d
|
|
BLAKE2b-256 checksum How to use checksums |
5edb5a41186dd288b2b72fceb5363c4c4e8ddaf2435191ab5797faeb5d73022e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / calculator_olu_ile-0.2.1-py3-none-any.whl
| Download URL | calculator_olu_ile-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbcf9d18042befb8c15619a6f08b9f51ec5868a6bad1fc677bfa0f95c167a2f1
|
|
BLAKE2b-256 checksum How to use checksums |
2b829930cf26e634677e2e6b1dde89465c69957060a32b9326d8a71c93b4aeb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Security for calculator_olu_ile 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.