Exception handling

Exception handling in Python is a mechanism to gracefully detect and handle runtime errors, preventing the program from crashing unexpectedly.