The lightweight package to find the mean, median, and mode. (Hence the name MEanMEdianMOde)
- Most efficient and more lightweight than the
numpy
orstatistics
module. - No need other 3rd-party modules to install.
- Only 3 functions.
Github repo: https://github.com/dUhEnC-39/mememo
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
a = mememo.median([1, 2])
print(a) # Output: 1.5
a = mememo.mode([1, 2, 2])
print(a) # Output: 2
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