Skip to main content

A Python package offering basic math calculations

Project description

vickycalculator

vickycalculator is a Python package that provides a handful of basic math operations—add, subtract, multiply, and divide. Perfect for simple arithmetic in your scripts or notebooks.

Installation

You can install the latest release directly from PyPI using pip:

pip install vickycalculator

Usage

import vickycalculator

print(vickycalculator.add(10, 5))       # 15
print(vickycalculator.subtract(10, 5))  # 5
print(vickycalculator.multiply(10, 5))  # 50
print(vickycalculator.divide(10, 5))    # 2.0

Example

import vickycalculator

a, b = 12, 3
sum_result      = vickycalculator.add(a, b)
difference      = vickycalculator.subtract(a, b)
product         = vickycalculator.multiply(a, b)
quotient        = vickycalculator.divide(a, b)

print(f"{a} + {b} = {sum_result}")
print(f"{a} - {b} = {difference}")
print(f"{a} x {b} = {product}")
print(f"{a} / {b} = {quotient}")

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

vickycalculator-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vickycalculator-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file vickycalculator-0.1.0.tar.gz.

File metadata

  • Download URL: vickycalculator-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for vickycalculator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e24afb846fd16bbe359271318e0b762c29133efe5bee5185fccc068459147ac5
MD5 70f9952a53459a745e7c2ee83dca3229
BLAKE2b-256 c169883710418eb2be35436463c72b13717cb2caac2a5034e5631989ee77d879

See more details on using hashes here.

File details

Details for the file vickycalculator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vickycalculator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93e83c2cdec32c02a2daec28c2caa13b9ffde576289cbeca9525c2c8a95c5a98
MD5 6f08600d4c5458d0cb37ef91b0b2be5d
BLAKE2b-256 2d20f0f536c14e11ab432708b3640968734f882052e13b81bb09d3f671bc39da

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