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

Uploaded Source

File details

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

File metadata

  • Download URL: media_calc-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 37637cec01cf0356724b0afe25edcd676c280c922adc3179ec88d5176f3a6f3e
MD5 f76a7b1db2c5a2ff67d6cb2b8898dd6a
BLAKE2b-256 93d6f484f0b234480c06666882d444374414970bbda682e5defa5de75581c5dd

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