May 21, 2025
SyntaxError: Incorrect syntax.ValueError: Argument of right type but inappropriate value.IOError: File operation fails.ZeroDivisionError: Division by zero attempt.IndexError: Sequence index out of range.NameError: Variable not defined.TypeError: Wrong data type used.raise and assert statements.AssertionError if false.try block for code that might throw exceptions.except block to handle specific exceptions.else block for code execution if no exception occurs.finally block for code that runs regardless of exceptions.ImportError, IOError, NameError, ZeroDivisionError are raised.raise for division by zero.assert to test division expression in previous code.try and except blocks.ValueError handling.finally clause in exception handling.