Skip to main content

Module of basic calculations

Project description

BASIC CALCULATOR

This is a module of basic calculator

By Yam

Installation

This library can be installed by the pip command, open your terminal and type in the following command...

pip install ymcntr

Functions of this library

First import the library using this command

import ymcntr as yc

and then proceed to call the functions

Simple Count

yc.plus()

This function can be used to add two numbers

yc.min()

This function can be used to subtract two numbers

Complex Count

yc.mult()

This function can be used to multiply two numbers

yc.div()

This function can be used to divide two numbers

The parameters

num1 (first number) - first number used in the calculation

num2 (second number) - second number used in the calculation

Example :

You have 2 bottle, then you got 5 bottle, now how much bottle you have?

In this case, you have 2 bottle then add 5 more bottle. So you will need the yc.plus() function with the following calculations:

>>> import ymcntr as yc
>>> yc.plus(2,5)

7

So, your your bottle now are 7

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

ymcntr-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file ymcntr-0.0.1.tar.gz.

File metadata

  • Download URL: ymcntr-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1

File hashes

Hashes for ymcntr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7201590af9fee6d32d757c26ca89d2d9c618aa4bd9c7ee6da4a81a00a25904eb
MD5 8ba907edfc26bd01cd78f52653ee7575
BLAKE2b-256 fe7f2df313b410611963c0a75c0b54aa4fa3002eabd49a8c81cea705b252e488

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