What Is Function and how it works and Advantages ?

ย 

Function is a group of statements which perform a particular task.

Function is a reusable block of code which performs operations specified in the function. They let you break down tasks and allow you to reuse your code in different programs.

ย 

ย 

Rules to define a function in Python:

> Functions blocks begin def followed by the function name and parantheses ().

> There are input parameters or arguments that should be placed within these parantheses ().

> You can also define parameters inside these parantheses.

> There is a body within every function that starts with a colon(:) and is indented.

> You can also place doccumentation before the body.

ย 

ย 

Advantages :

> Re-Usability

> Modulrity

> Maintanance

ย 

ย