It is often said that nothing in life is certain but death andtaxes. For a programmer or data scientist, however, nothing iscertain but encountering errors.
In Python, there are two primary types of errors, both of whichyou are likely familiar with: syntax errors and exceptions. Syntaxerrors occur when the proper structure of the language is notfollowed, while exceptions are errors that occur during theexecution of a program. These include errors such asZeroDivisionError, TypeError, NameError, and many more!
Under the hood, these errors are based in the concepts of objectorientation, and all exceptions are class objects. If you’reinterested in more detailed explanations of
OR
OR