Skip to main content

A very basic calculator

Project description

Basic Calculator

This is my first python package. This is a very simple calculator that takes 2 numbers and can either add, subtract, multiply or divide them.

Installation

Run the following to install :

pip install SDasBasicCalculator 

Usage

from SDasBasicCalculator import add_num
from SDasBasicCalculator import sub_num
from SDasBasicCalculator import mul_num
from SDasBasicCalculator import div_num

Add 2 numbers:

add_num(num1, num2)

Subtract2 numbers:

sub_num(num1, num2)

Multiply 2 numbers:

mul_num(num1, num2)

Divide 2 numbers:

add_num(num1, num2)

Developing Basic Calculator

To install Basic Calculator, along with the tools you need to develop and run tests, run the following in your virtualenv:

$pip install -e .[dev]

CHANGE LOG

1.0.1 (20/01/2021)

-FIRST RELEASE

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

SDasBasicCalculator-1.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

SDasBasicCalculator-1.0.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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