```python
for planet in planets:
    force = s.attract(planet)
    # etc.
```