A fully functional calculator by Sujata timalsina
Project description
Sujata's Calculator
A fully functional calculator by sujata timalsina with history tracking.
Installation
pip install sujata-the-calculator
Python Usage
from sujata_the_calculator import Calculator
calc = Calculator() print(calc.add(5, 3)) # 8 print(calc.subtract(10, 4)) # 6 print(calc.multiply(3, 7)) # 21 print(calc.divide(20, 4)) # 5.0 print(calc.power(2, 8)) # 256p print(calc.square_root(81)) # 9.0 print(calc.percentage(200, 15)) # 30.0 print(calc.absolute(-42)) # 42 calc.print_history() # shows all past operations
Command Line
sujata_calc
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 sujata_the_calculator-1.0.3.tar.gz.
File metadata
- Download URL: sujata_the_calculator-1.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18563bc756f958adf63ce22931dde2fcf2ec4cead9ab30b35c9c9e9edd38690b
|
|
| MD5 |
ed2ea332a4aa9b0202f52bf35a79ca83
|
|
| BLAKE2b-256 |
805aca5647a185579aa06242e99532e39056a7ccf36b9c71449f8a3bc2047975
|
File details
Details for the file sujata_the_calculator-1.0.3-py3-none-any.whl.
File metadata
- Download URL: sujata_the_calculator-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e1f730b0f314e2d3abe411fca2782384ae08c8f5aef8b7c875c77ca1301b696
|
|
| MD5 |
f0a5acb50dbd5eb63edabbafd4c45f2e
|
|
| BLAKE2b-256 |
ea9e7eb8378cb8becb1b04a7b5f2c9513c633587be44dc223dba292861c1b61f
|