Debugging in Python, part 10: A logical error

Debugging in Python, part 10: A logical error