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

0.0.6

  • 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.6.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file calcy-0.0.6.tar.gz.

File metadata

  • Download URL: calcy-0.0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for calcy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 dafec01d71ede3d8ef266bfafdcbb0ea7854419d372866fa32f5244d781ccdc9
MD5 52552ed1ccae9946af65a97d7028c2e4
BLAKE2b-256 2786ac26f79cd5b0ebab71b0ef7d93c2e6aac81ecfbc3bd2b5bfddc1b987bac6

See more details on using hashes here.

Supported by

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