In python a function is a group of related statements that perform a specific task.functions help break our program into smaller and modular chucks,as our program grows larger,function make it more organized and manageable.it avoids repetion and make code reusable.
def function name(parameters):
statements(s)
def test(name):
print("Welcome" + name)
test('Bharat')
Welcome Bharat