Skip to main content

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 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)        - takes variable agruments and adds them.
2. subtract_numbers(*args)   - takes variable agruments and subtracts them.
3. multiply_numbers(*args)   - takes variable agruments and multiplies them.
4. divide_numbers(*args)     - 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)

Version History

0.0.1

-First Release

0.0.2

-Add help function -Change return type on passing invalid arguments

0.0.3

-Update README.txt

0.0.4

-Improve README.txt

0.0.5

-fix pip hyperlink -change version history style

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.5.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page