Averages/Simple moving average: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: Add class-based solution and sample output.)
(→‎{{header|Python}}: Link to collections.deque info.)
Line 827: Line 827:


=={{header|Python}}==
=={{header|Python}}==
{{Works with|Python|3.x}}
{{Works with|Python|3.x}}<br>
Both implementations use the [http://www.doughellmann.com/PyMOTW/collections/index.html deque] datatype.

===Procedural===
===Procedural===
<lang python>from collections import deque
<lang python>from collections import deque