<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span style="color: rgb(17, 5, 59); font-family: Times; font-size: large; ">Good morning,</span></div><div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><font face="Times" size="4" color="#11053b">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.</font></div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><div><font face="Times" size="4" color="#11053b">>>> mean([1, 2, 3, 4, 4])</font></div><div><font face="Times" size="4" color="#11053b">Traceback (most recent call last):</font></div><div><font face="Times" size="4" color="#11053b">  File "<pyshell#4>", line 1, in <module></font></div><div><font face="Times" size="4" color="#11053b">    mean([1, 2, 3, 4, 4])</font></div><div><font face="Times" size="4" color="#11053b">NameError: name 'mean' is not defined</font></div></div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><font face="Times" size="4" color="#11053b">Could you please help. Is it possible to send me the version that calculate statistics.</font></div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><font face="Times" size="4" color="#11053b">Thanks,</font></div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><font face="Times" size="4" color="#11053b">Michel</font></div><div><font face="Times" size="4" color="#11053b"><br></font></div><div><br></div><div><br></div><div><br></div><div><br></div><div><h1 style="font-family: 'Lucida Grande', Arial, sans-serif; background-color: white; font-weight: normal; color: rgb(26, 26, 26); border: 0px; margin: 0px; padding: 0.3em 0px; font-size: 32px; ">9.7. <a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#module-statistics" title="statistics: mathematical statistics functions" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-mod docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 31px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">statistics</span></tt></a> — Mathematical statistics functions<a class="headerlink" href="https://docs.python.org/3.4/library/statistics.html#module-statistics" title="Permalink to this headline" style="color: rgb(99, 99, 187); text-decoration: none; visibility: hidden; font-size: 0.8em; padding: 0px 4px; "></a></h1><div class="versionadded" style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); "><p style="text-align: justify; line-height: 22px; "><span class="versionmodified" style="font-style: italic; ">New in version 3.4.</span></p></div><p style="text-align: justify; line-height: 22px; color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); "><strong>Source code:</strong> <a class="reference external" href="https://hg.python.org/cpython/file/3.4/Lib/statistics.py" style="color: rgb(99, 99, 187); text-decoration: none; ">Lib/statistics.py</a></p><hr class="docutils" style="border: 0px; background-color: rgb(204, 204, 204); height: 1px; color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; "><p style="text-align: justify; line-height: 22px; color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">This module provides functions for calculating mathematical statistics of numeric (<tt class="xref py py-class docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">Real</span></tt>-valued) data.</p><div class="admonition note" style="margin-top: 10px; margin-bottom: 10px; padding: 7px; background-color: rgb(238, 238, 238); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; "><p class="first admonition-title" style="margin: 0px 10px 5px 0px; font-weight: bold; display: inline; text-align: justify; line-height: 22px; ">Note</p><p class="last" style="text-align: justify; line-height: 22px; margin-bottom: 5px; display: inline; ">Unless explicitly noted otherwise, these functions support <a class="reference internal" href="https://docs.python.org/3.4/library/functions.html#int" title="int" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-class docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">int</span></tt></a>, <a class="reference internal" href="https://docs.python.org/3.4/library/functions.html#float" title="float" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-class docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">float</span></tt></a>, <a class="reference internal" href="https://docs.python.org/3.4/library/decimal.html#decimal.Decimal" title="decimal.Decimal" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-class docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">decimal.Decimal</span></tt></a> and <a class="reference internal" href="https://docs.python.org/3.4/library/fractions.html#fractions.Fraction" title="fractions.Fraction" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-class docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">fractions.Fraction</span></tt></a>. Behaviour with other types (whether in the numeric tower or not) is currently unsupported. Mixed types are also undefined and implementation-dependent. If your input data consists of mixed types, you may be able to use <a class="reference internal" href="https://docs.python.org/3.4/library/functions.html#map" title="map" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">map()</span></tt></a> to ensure a consistent result, e.g. <tt class="docutils literal" style="background-color: rgb(214, 214, 214); padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">map(float,</span><span class="pre">input_data)</span></tt>.</p></div><div class="section" id="averages-and-measures-of-central-location" style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); "><h2 style="background-color: white; font-weight: normal; color: rgb(26, 26, 26); border: 0px; margin: 0px; padding: 0.3em 0px; font-size: 26px; ">9.7.1. Averages and measures of central location<a class="headerlink" href="https://docs.python.org/3.4/library/statistics.html#averages-and-measures-of-central-location" title="Permalink to this headline" style="color: rgb(99, 99, 187); text-decoration: none; visibility: hidden; font-size: 0.8em; padding: 0px 4px; "></a></h2><p style="text-align: justify; line-height: 22px; ">These functions calculate an average or typical value from a population or sample.</p><table border="1" class="docutils" style="border: 1px solid rgb(221, 221, 221); border-collapse: collapse; min-width: 20%; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin-top: 10px; margin-bottom: 10px; "><colgroup><col width="34%"><col width="66%"></colgroup><tbody valign="top"><tr class="row-odd"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.mean" title="statistics.mean" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">mean()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Arithmetic mean (“average”) of data.</td></tr><tr class="row-even"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.median" title="statistics.median" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">median()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Median (middle value) of data.</td></tr><tr class="row-odd"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.median_low" title="statistics.median_low" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">median_low()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Low median of data.</td></tr><tr class="row-even"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.median_high" title="statistics.median_high" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">median_high()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">High median of data.</td></tr><tr class="row-odd"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.median_grouped" title="statistics.median_grouped" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">median_grouped()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Median, or 50th percentile, of grouped data.</td></tr><tr class="row-even"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.mode" title="statistics.mode" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">mode()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Mode (most common value) of discrete data.</td></tr></tbody></table></div><div class="section" id="measures-of-spread" style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); "><h2 style="background-color: white; font-weight: normal; color: rgb(26, 26, 26); border: 0px; margin: 0px; padding: 0.3em 0px; font-size: 26px; ">9.7.2. Measures of spread<a class="headerlink" href="https://docs.python.org/3.4/library/statistics.html#measures-of-spread" title="Permalink to this headline" style="color: rgb(99, 99, 187); text-decoration: none; visibility: hidden; font-size: 0.8em; padding: 0px 4px; "></a></h2><p style="text-align: justify; line-height: 22px; ">These functions calculate a measure of how much the population or sample tends to deviate from the typical or average values.</p><table border="1" class="docutils" style="border: 1px solid rgb(221, 221, 221); border-collapse: collapse; min-width: 20%; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin-top: 10px; margin-bottom: 10px; "><colgroup><col width="34%"><col width="66%"></colgroup><tbody valign="top"><tr class="row-odd"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.pstdev" title="statistics.pstdev" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">pstdev()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Population standard deviation of data.</td></tr><tr class="row-even"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.pvariance" title="statistics.pvariance" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">pvariance()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Population variance of data.</td></tr><tr class="row-odd"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.stdev" title="statistics.stdev" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">stdev()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Sample standard deviation of data.</td></tr><tr class="row-even"><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; "><a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.variance" title="statistics.variance" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-func docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">variance()</span></tt></a></td><td style="text-align: left; padding: 0.3em 0.5em; border: 1px solid rgb(221, 221, 221) !important; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: white; ">Sample variance of data.</td></tr></tbody></table></div><div class="section" id="function-details" style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); "><h2 style="background-color: white; font-weight: normal; color: rgb(26, 26, 26); border: 0px; margin: 0px; padding: 0.3em 0px; font-size: 26px; ">9.7.3. Function details<a class="headerlink" href="https://docs.python.org/3.4/library/statistics.html#function-details" title="Permalink to this headline" style="color: rgb(99, 99, 187); text-decoration: none; visibility: hidden; font-size: 0.8em; padding: 0px 4px; "></a></h2><p style="text-align: justify; line-height: 22px; ">Note: The functions do not require the data given to them to be sorted. However, for reading convenience, most of the examples show sorted sequences.</p><dl class="function" style="margin-bottom: 15px; "><dt id="statistics.mean"><tt class="descclassname" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">statistics.</tt><tt class="descname" style="background-color: transparent; padding: 0px 1px; font-size: 19px; font-family: monospace, sans-serif; font-weight: bold; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">mean</tt><big>(</big><em>data</em><big>)</big><a class="headerlink" href="https://docs.python.org/3.4/library/statistics.html#statistics.mean" title="Permalink to this definition" style="color: rgb(99, 99, 187); text-decoration: none; visibility: hidden; font-size: 0.8em; padding: 0px 4px; "></a></dt><dd style="margin-top: 3px; margin-bottom: 10px; margin-left: 30px; text-align: justify; line-height: 20px; "><p style="margin-top: 0px; line-height: 22px; ">Return the sample arithmetic mean of <em>data</em>, a sequence or iterator of real-valued numbers.</p><p style="margin-top: 0px; line-height: 22px; ">The arithmetic mean is the sum of the data divided by the number of data points. It is commonly called “the average”, although it is only one of many different mathematical averages. It is a measure of the central location of the data.</p><p style="margin-top: 0px; line-height: 22px; ">If <em>data</em> is empty, <a class="reference internal" href="https://docs.python.org/3.4/library/statistics.html#statistics.StatisticsError" title="statistics.StatisticsError" style="color: rgb(99, 99, 187); text-decoration: none; "><tt class="xref py py-exc docutils literal" style="background-color: transparent; padding: 0px 1px; font-size: 15px; font-family: monospace, sans-serif; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="pre">StatisticsError</span></tt></a> will be raised.</p><p style="margin-top: 0px; line-height: 22px; ">Some examples of use:</p><div class="highlight-python3" style="position: relative; "><div class="highlight" style="background-color: rgb(238, 255, 204); position: static; z-index: auto; "><span class="copybutton" title="Hide the prompts and output" style="cursor: pointer; position: absolute; top: 0px; right: 0px; border: 1px solid rgb(170, 204, 153); color: rgb(170, 204, 153); font-family: monospace; padding-left: 0.2em; padding-right: 0.2em; border-top-left-radius: 0px; border-top-right-radius: 3px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; ">>>></span><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; color: rgb(51, 51, 51); line-height: 18px; border: 1px solid rgb(170, 204, 153); font-family: monospace, sans-serif; font-size: 15px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><span class="gp" style="color: rgb(198, 93, 9); font-weight: bold; ">>>> </span><span class="n">mean</span><span class="p">([</span><span class="mi" style="color: rgb(32, 128, 80); ">1</span><span class="p">,</span> <span class="mi" style="color: rgb(32, 128, 80); ">2</span><span class="p">,</span> <span class="mi" style="color: rgb(32, 128, 80); ">3</span><span class="p">,</span> <span class="mi" style="color: rgb(32, 128, 80); ">4</span><span class="p">,</span> <span class="mi" style="color: rgb(32, 128, 80); ">4</span><span class="p">])</span>
<span class="go">2.8</span>
<span class="gp" style="color: rgb(198, 93, 9); font-weight: bold; ">>>> </span><span class="n">mean</span><span class="p">([</span><span class="o" style="color: rgb(102, 102, 102); ">-</span><span class="mf" style="color: rgb(32, 128, 80); ">1.0</span><span class="p">,</span> <span class="mf" style="color: rgb(32, 128, 80); ">2.5</span><span class="p">,</span> <span class="mf" style="color: rgb(32, 128, 80); ">3.25</span><span class="p">,</span> <span class="mf" style="color: rgb(32, 128, 80); ">5.75</span><span class="p">])</span>
<span class="go">2.625</span>
</pre><br class="Apple-interchange-newline"></div></div></dd></dl></div></div><div><br></div></div></body></html>