Michel Guirguis 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
Michel Guirguis wrote:
> I have downloaded the version 3.4 and I have a problem to calculate the
> mean. The software does not recognise the function mean(). I am getting
> the following error.
>
mean([1, 2, 3, 4, 4])
> Traceback (most recent call last):
> File "", line 1, in
> mean([