Functions are on of the main pillar of python.
It can solve large problems with direct commands.
If used in a proper way,it can save time and make coding simple.
In Python,Function is a particular instruction to perform a specific task.
There are two types of function.
First one is built in function and the other type is user defined functions.
Both are used to make work simpler.
In python,We define function using def with function name.Function parameter is argument.
# function definition def my_function(): print("I am a good boy") # function calling my_function()
Out put of above snippet will be i am a good boy.