Popular recipes tagged "demonstration", "numbers" and "algorithms"http://code.activestate.com/recipes/tags/demonstration+numbers+algorithms/popular/2012-12-06T13:44:42-08:00ActiveState Code RecipesAveraging Literal Numbers (Python)
2012-12-06T13:44:42-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578365-averaging-literal-numbers/
<p style="color: grey">
Python
recipe 578365
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/numbers/">numbers</a>).
</p>
<p>One program that a teacher may assign to beginning programming students would be to take a list of numbers and average them together. This recipe does just that and is designed to be easy to read and follow, showing what is possible with a few lines of Python.</p>