How to create function in python ?
Python Functions :
A function is a block of code which only runs when it is called. You can pass data,which is known as parameters,into a function.
Creating a Function :
Calling a Function:
Passing parameters :
def my_function(fname): print(fname + " Refsnes") my_function("Email") my_function("Resume") my_function("contacts")Lambda Functions: