Computer Science, asked by Abdirahmaan, 8 months ago

What is a function? Explain five benefits of functions in python.

Answers

Answered by kumar3940
3

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

Answered by anujpradhan150
4

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.

Similar questions