Python Exception Handling With Finally
In the previous article, you learned about different ways of handling an exception in the try block. However, there are some codes that are bound… Read More »Python Exception Handling With Finally
In the previous article, you learned about different ways of handling an exception in the try block. However, there are some codes that are bound… Read More »Python Exception Handling With Finally
The else block in python is also part of the exception handling. The try block when finds an error, jumps to the catch block. However,… Read More »Python Exception Handling With Else
The python except block is the catch block in the exception handling mechanism. Any error or exception caught in the try block is caught by… Read More »Python Except Block
The python try block is part of python exception handling mechanism. The try block is similar to an if-then-else block. If an error occurs the… Read More »Python Try Block
In computer programs, some kind of errors are expected. We can simply read those errors and fix the problem. But some errors are bound to… Read More »Error Handling Overview
In earlier articles about function, we have used parameters and those parameters are replaced with some arguments when a function call takes place. In this… Read More »Python Keyword Parameters
In the previous articles, you have seen various types of functions. Function either return a value or nothing. In this article, you will learn about… Read More »Python Function Return NoneType
In the previous example, you have seen that python can take no parameter and return some value. In this example, you will learn that a… Read More »Python Function With Parameters, No Return
In this article, you will learn about functions that does not take any parameters, but does return a value. The returned value can be used… Read More »Python Function With No Parameters, With Return
In the last article, we have seen how a user-defined function is created. The user-defined function has two parts – the function definition and the… Read More »Python Function With No Parameter, No Return