Category Python

Debugging in Python | Python Debugger

Debugging techniques in Python

After a writing the program in Python or any other computer programming language, the next step is to debug the program. When we write a computer program in a language, we call it as program code or simply coding. When…

Assertions in Python

An assertion in Python is a powerful debugging tool that we can use to display diagnostic information while testing or running a program. It helps to validate assumptions within the program code so that we can identify errors swiftly and…

How to Raise Exception in Python

In this tutorial, we will learn how to raise an exception in Python with the help of examples. When an error occurs in a program, Python automatically raises exceptions during the execution of the program. However, Python also allows us…

User Defined Exception in Python

A user defined exception in Python is an exception that is constructed by the user or programmer to represent a specific error condition or exceptional situation in a program. It is also known as a custom exception. Python offers a…