Generators for Engineers

A gentle introduction to infinite sequences.

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

for average in moving_average(noisy_sensor):
    if average > safe_value:
        alert("Sensor reads dangerous values.")
Name:
Mail: (not shown)

Please type this: