Python Bit
Python Bit
2. User-Defined Functions
A function that you define yourself in a program is known as user defined
Function.
You can give any name to a user defined function, however you cannot use
The Python keywords as function name.
In python, we define the user-defined function using def keyword, followed
By the function name.
Function name is followed by the parameters in parenthesis, followed by the
Colon.
For example:
Def function_name(parameter_1, parameter_2, ...) :
Statements
...