Category Python
Void Function in Python
Void function in Python is a function that performs an action but does not return any computed or final value to the caller. It can accept any number of parameters and perform operation inside the function. A void function may…
Return in Python | Python Return Statement

A return in Python is a keyword that passes (or returns) a value or data from the function back to the main code. When we declare a return keyword with a value or expression separating by the comma, then we…
Pass by Value in Python | Pass by Reference

When we define a custom or user defined function in Python we may, optionally we may need to specify parameter names between the function’s parentheses. If we specify parameters in the function definition, then we need to pass argument values…
Function Arguments in Python
In Python, we can pass a piece of data into a user-defined function definition based on function arguments and parameters. Parameters are the local variables mentioned within the parentheses in the function definition. We also call them as formal parameters.…
Calling a Function in Python

In this tutorial, we will learn about calling a function in Python with the help of examples. So far, we have studied that a function ‘object’ is a block of code that performs a specific and well-defined task. It is…
