If you are writing code, especially for production, it’s really important that the code has good logging features and test cases. Both make sure that you can track errors and fix any issues that arise. Python has a rich set of built-in libraries for debugging and testing the Python code that I’ll cover in this chapter.
Note
As with any programming language, Python has a lot of tools to add logs and tests in code. Having a good understanding of those tools is important in a professional environment where running software in production makes money for you. Losing money because of errors or bugs ...