It is, yes. It does seem a little like cheating, but performance-wise, it's better than building the word object to check the score or even doing
```python
score = w[2]
```
inside the loop (barely, but just). Though doing that might make it more pythonic, the way it is now is still perfectly valid.