Functions
Functions
A function is a logical block of code that does a specific task. Optionally, a function takes one or more arguments, and can return a value.
The following list of Python Tutorials on Functions will make an introduction to Functions, and other concepts related to Functions.
- Python - Introduction to Functions
Python tutorial that introduces you to Functions. Syntax to write a function, how to call a function, passing arguments to a function, etc. - Python - Pass multiple arguments to function *args
Python tutorial on how to send variable number of arguments to a function. - Python - Keyword arguments to function **kwargs
Python tutorial on how to send variable number of keyword arguments to a function. - Python - Return a value from function
Python tutorial on how to return a value from a function using return statement. - Python - Return multiple values from a function
Python tutorial on how to return multiple values from a function in a single return statement. - Python - Return function from function
Python tutorial on how to return a function from another function. - Python Inner Functions
Python tutorial on how to define a function inside another function. - Python Lambda Functions
Python tutorial on how to write Lambda Functions(anonymous functions). - Python Recursion Functions
Python tutorial on how to write Recursion Functions, the functions that call themselves in their body. - Python Callback Function
Python tutorial on how to write a Callback Function. Callback is a function that is passed to another function, and the other function must call this callback function. - Python Builtin Functions
Python tutorial that lists all the builtin functions. - Python List of Functions
Python tutorial on how to define a list with functions as elements. - Python - Find execution time of a function
Python tutorial to find the time taken by a function call to execute.
Other Function Tutorials
- Python - Return tuple from a function
Python tutorial on how to return a Tuple object from a function.