Michel Guirguis <guirguismic...@yahoo.co.uk> writes:
>>>> mean([1, 2, 3, 4, 4])
> Traceback (most recent call last):...
> NameError: name 'mean' is not defined

Before you can use that function, you have to import the statistics
module, e.g.:

    >>> import statistics
    >>> statistics.mean([1,2,3,4,4])   

or

    >>> from statistics import mean
    >>> mean([1,2,3,4,4])
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to