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.1.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file media_calc-0.1.1.tar.gz.

File metadata

  • Download URL: media_calc-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.1.tar.gz
Algorithm Hash digest
SHA256 fee79dfe94ec874d84eeab1b656e5ba882c1c506ca2fc737a729248813f5ba5a
MD5 15e74d49df1aa1bcc8f0e162064297bb
BLAKE2b-256 8212a71771278223edf690f03aa3531e7cf703c61bafc2c1e0bc411925e760ef

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