There is a style guide for Python called PEP 8 which is definitly worth reading.
Among other things:
Avoid trailing whitespace anywhere
Comparisons to singletons like None should always ...
You answer seems fine. Don't worry about how other people have solved the same problem.
The break/continue logic is not bad GIVEN the question, but you should definitely comment in your code what the ...