Python's Built-in Exceptions: A Walkthrough With Examples - Real Python
Briefly

Errors are concrete conditions, such as syntax and logical errors, that make your code work incorrectly or even crash. Often, you can fix errors by updating or modifying the code, installing a new version of a dependency, checking the code's logic, and so on.
There's something to learn from the above example. You can fix errors, but you can't handle them. In other words, if you have a syntax error like the one in the example, then you won't be able to handle that error and make the code run. You need to correct the syntax.
On the other hand, exceptions are events that interrupt the execution of a program. As their name suggests, exceptions occur in exceptional situations that should or shouldn't happen. So, to prevent your program from crashing after an exception, you must handle the exception with the appropriate exception-handling mechanism.
Read at Realpython
[
add
]
[
|
|
]