According to the Zen of Python, “There should be one– and preferably only one –obvious way to do it.” It’s a good principle for designing a program: the more ways there are of doing something, the more confusing the software becomes, along with a host of other problems. In reality, though, there almost always is more than one way to accomplish something. The quotation even displays this fact: it places the dash in two different ways, neither of which are the obvious way.
Articles on Zen of Python
Errors should never pass silently
By Bob Belderbos on 18 January 2017
In this article some important anti-patterns regarding error handling and how to solve them making your code more Pythonic and easier to maintain.