Unfortunately, this is subtly wrong.  Python iterates through the list *until* it finds an element that matches the query.