# Python control — same SMA task, in Python (Qwen/Qwen3-Coder-Next)

tokens: prompt=175 completion=113

---

extracted Python program:
```python
def simple_moving_average(values):
    window = []
    for value in values:
        window.append(value)
        if len(window) >= 3:
            if len(window) > 3:
                window.pop(0)
            avg = sum(window) / 3
            print(avg)

# Feed the stream values one at a time
stream = [1.0, 5.0, 3.0, 8.0, 6.0, 2.0]
simple_moving_average(stream)
```


written to: /tmp/qwen_sma.py (NOT executed by this harness)
