Re: Problem to calculate the mean in version 3.4

2015-09-25 Thread Paul Rubin
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

Re: Problem to calculate the mean in version 3.4

2015-09-25 Thread Peter Otten
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([