IJ
IJCRM
International Journal of Contemporary Research in Multidisciplinary
ISSN: 2583-7397
Open Access • Peer Reviewed
Impact Factor: 5.67

International Journal of Contemporary Research In Multidisciplinary, 2026;5(6):89-94

Exception Handling Mechanisms in Python: A Comprehensive Study

Author Name: Harisharanappa S. Padsalgi;  

1. Department of Computer Science, Sharnbasveshwar College of Science, Gulbarga University, Kalaburagi, Karnataka, India

Abstract

Exception handling is an important feature of modern programming languages that helps programmers manage runtime errors without abruptly terminating their execution and maintain the normal execution of programs. Python provides a simple and powerful exception-handling mechanism to detect and handle errors effectively. Errors such as division by zero, invalid input, file-not-found errors and type errors may interrupt the execution of a program. Python uses different keywords such as try, except, else, finally and raise to handle these situations. This paper presents a comprehensive study of exception handling mechanisms in Python programming. It explains built-in exceptions, multiple exception handling, user-defined exceptions and practical applications. The paper also discusses the importance of exception handling in developing reliable, readable and maintainable software applications. The study highlights the role of proper exception handling in improving program reliability and preventing unexpected program termination.

Keywords

Python Programming, Exception Handling, Runtime Errors, Try-Except, Built-in Exceptions, User-Defined Exceptions.