Skip to main content

calcutils-ruz-teh

Python License: MIT

A simple student tutorial math utility package.

calcutils-ruz-teh provides a few small, well-documented helper functions for everyday arithmetic and statistics. It has no dependencies, so it installs cleanly into any Python 3.8+ environment.

Installation

Install the latest release from PyPI:

pip install calcutils-ruz-teh

To upgrade an existing installation:

pip install --upgrade calcutils-ruz-teh

Note: if you are working from the source repository instead of PyPI, install it in editable mode with pip install -e .

Usage

Import the helpers directly from the package:

from calcutils_ruz_teh import add, multiply, average

print(add(2, 3))              # 5
print(multiply(4, 5))         # 20
print(average([2, 4, 6, 8]))  # 5.0

API

Function Signature Description
add add(a, b) -> float Returns the sum of two numbers.
multiply multiply(a, b) -> float Returns the product of two numbers.
average average(numbers) -> float Returns the arithmetic mean of a list of numbers. Returns 0.0 for an empty list.

All three functions accept int or float inputs and are safe to use with negatives, zero, and decimals.

Example

from calcutils_ruz_teh import add, multiply, average

scores = [80, 90, 70, 100]
total = add(sum(scores[:2]), sum(scores[2:]))
print(f"Total: {total}")
print(f"Best two product: {multiply(max(scores), 2)}")
print(f"Class average: {average(scores):.2f}")

Output:

Total: 340
Best two product: 200
Class average: 85.00

Requirements

  • Python 3.8 or newer

License

Released under the MIT License.

Metadata

Release files for calcutils-ruz-teh 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calcutils-ruz-teh 0.1.3
File Size Uploaded Provenance Actions
calcutils_ruz_teh-0.1.3.tar.gz 4.3 kB Without provenance Details for calcutils_ruz_teh-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calcutils-ruz-teh 0.1.3
File Interpreter ABI Platform Actions
calcutils_ruz_teh-0.1.3-py3-none-any.whl Python 3 none any Details for calcutils_ruz_teh-0.1.3-py3-none-any.whl

Total release size: 8.5 kB

Release files / calcutils_ruz_teh-0.1.3.tar.gz

Download URL calcutils_ruz_teh-0.1.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
99bbbf73010d23c3c8f2bef4bdc77291b634f44825a6e0fd99641f7fb5534a11
BLAKE2b-256 checksum
How to use checksums
f5ef8595152b3e70b7a92fae4940e2c166817cf84482910958e18e8e51ee9f08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / calcutils_ruz_teh-0.1.3-py3-none-any.whl

Download URL calcutils_ruz_teh-0.1.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b57518be70be99992806c3a0dcbad07e921075de31ef10ccf361761313c1b3f
BLAKE2b-256 checksum
How to use checksums
d1449949b52de5fd699acbee7f980fa5a9f24dea7ec66a8a112e8ab250751b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for calcutils-ruz-teh 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page