What is a function? Explain five benefits of functions in python.
Answers
Answer:
The advantages of using functions are:
1) Reducing duplication of code.
2) Decomposing complex problems into simpler pieces.
3) Improving clarity of the code.
4) Reuse of code.
4) Information hiding
Answer:
Hey mate,
Description
A function is a rule which relates the values of one variable quantity to the values of another variable quantity, and does so in such a way that the value of the second variable quantity is uniquely determined by (i.e. is a function of) the value of the first variable quantity.
Python function definition
Reducing duplication of code.
Decomposing complex problems into simpler pieces.
Improving clarity of the code.
Reuse of code.
Information hiding.
Hope it will help u,
Plz like it and follow me to follow you back.
Plz mark me as brainliest plz haath jod ta hu.