A basic calculator
Project description
Calcy is a basic calculator library that allows to add, subtract, multipy and divide MULTIPLE numbers all at once.
Installation
Use the package manager pip <https://pip.pypa.io/en/stable/>
_ to install calcy
pip install calcy
Usage
import calcy
calcy.help()
Calling calcy will list out all the details of the library.
Following are the available functionalities with this library
1. add_numbers(*args)\t\t - takes variable agruments and adds them.
2. subtract_numbers(*args)\t - takes variable agruments and subtracts them.
3. multiply_numbers(*args)\t - takes variable agruments and multiplies them.
4. divide_numbers(*args)\t - takes variable agruments and divides them.
In all the above functions, if argument size = 0, function returns float('-inf')
Sample Code
import calcy
x = calcy.add_numbers(2,4,5,10,7)
print(x)
Change Log
0.0.1 (11/07/2020)
- First Release
0.0.2 (11/07/2020)
- Add help function
- Change return type on passing invalid arguments
0.0.3 (11/07/2020)
- Update README.txt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calcy-0.0.3.tar.gz
(2.9 kB
view hashes)