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…

Pass by Value in Python | Pass by Reference

Pass by value and Pass by object reference in Python

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

Example of 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…