Category Python

Handling Multiple Exceptions in Python

Handling multiple exceptions in Python

In this tutorial, we will understand how to catching and handling multiple exceptions in Python with the help of various examples. In a single piece of code, there might occur different types of exceptions. In Python, a single try block…

Try Except in Python

Python try except block

An exception or error is an abnormal condition or problem that occurs during the execution of a program. If any error occurs during the program execution, the program terminates abnormally or unexpectedly and does not execute further. This abrupt termination…

Types of Exception in Python

An exception is an unwanted event or abnormal condition that occurs when the program encounters an error (something in the program goes wrong) during the execution of a program. It is usually an object in Python that represents an error.…

Exception Handling in Python (with Example)

Python exception handling diagram

In this tutorial, we will understand exception handling in Python with the help of examples. When we write and execute a program in Python, we may have encountered several kinds of runtime errors, such as integer division by zero, accessing…

OOPs Concepts in Python (with Examples)

What is OOPs concepts in Python

In this tutorial, we are going to delve into the basic of OOPs concepts in Python with the help of important examples. Object-oriented programming (OOP) is a concept that deals with encapsulation, inheritance, polymorphism, abstraction, etc. Simula67 was the first…