Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

media_calc-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

media_calc-0.2.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for media_calc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fd375a38218845622eca6e568495ea05bae36a99f62bb7d167159be1dc437cea
MD5 4a6bb54c2ed6c036521e5f0d01fef4e2
BLAKE2b-256 430bd7999a7c87d46c9e164d3c766b1b659e44a4848871478d81b43afa065b5e

See more details on using hashes here.

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

Hashes for media_calc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e0de0ffe30ff876929066f62728e9fba948f671bde2ecf01649fb78c6f4c871
MD5 960b59437fc1bf4b1a8cc00b11d9cd9f
BLAKE2b-256 5da0ce8559cb446c2098417851c6ea89138044f420a56106da97e68054843948

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