Averages/Simple moving average: Difference between revisions

→‎{{header|Python}}: Link to collections.deque info.
(→‎{{header|Python}}: Add class-based solution and sample output.)
(→‎{{header|Python}}: Link to collections.deque info.)
Line 827:
 
=={{header|Python}}==
{{Works with|Python|3.x}}<br>
Both implementations use the [http://www.doughellmann.com/PyMOTW/collections/index.html deque] datatype.
 
===Procedural===
<lang python>from collections import deque
Anonymous user