Skip to content

dUhEnC-39/mememo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mememo

PyPI version Python version Lightweight Github

The lightweight package to find the mean, median, and mode. (Hence the name MEanMEdianMOde)


Benefits

  • Most efficient and more lightweight than the numpy or statistics module.
  • No need other 3rd-party modules to install.
  • Only 3 functions.

Documentation guide

mean()

You can use the mean() function to find the mean of 2+ numbers.

import mememo

a = mememo.mean([1, 2])
print(a) # Output: 1.5

Same way applies to the median() and mode() functions.

a = mememo.median([1, 2])
print(a) # Output: 1.5
a = mememo.mode([1, 2, 2])
print(a) # Output: 2

Cruical note: The function must only take in one argument which is the list of numbers.

For example,

mememo.mean(10, 15, 87)

will raise this error

TypeError: mean() takes 1 positional argument but 3 were given

Any questions? Email here

Releases

No releases published

Packages

No packages published