An efficient Python library for calculating the arithmetic mean of a list of numbers
Project description
media-calc
A simple and efficient Python library for calculating the arithmetic mean of a list of numbers.
Description
This library provides a simple yet robust function to calculate the arithmetic mean of a list of numbers. It's ideal for:
- Basic statistical analysis
- Data processing
- Educational projects
- Simple mathematical calculations
Installation
pip install media-calc
Usage
from media import media
# Calculate average of a list of numbers
numbers = [1, 2, 3, 4, 5]
result = media(numbers)
print(result) # Output: 3.0
# Handle empty list
empty = []
result = media(empty)
print(result) # Output: 0
Features
- Calculate arithmetic mean of a list of numbers
- Handle empty lists (returns 0)
- Simple and easy to use
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file media_calc-0.2.0.tar.gz.
File metadata
- Download URL: media_calc-0.2.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd375a38218845622eca6e568495ea05bae36a99f62bb7d167159be1dc437cea
|
|
| MD5 |
4a6bb54c2ed6c036521e5f0d01fef4e2
|
|
| BLAKE2b-256 |
430bd7999a7c87d46c9e164d3c766b1b659e44a4848871478d81b43afa065b5e
|
File details
Details for the file media_calc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: media_calc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e0de0ffe30ff876929066f62728e9fba948f671bde2ecf01649fb78c6f4c871
|
|
| MD5 |
960b59437fc1bf4b1a8cc00b11d9cd9f
|
|
| BLAKE2b-256 |
5da0ce8559cb446c2098417851c6ea89138044f420a56106da97e68054843948
|