Respuesta :

Answer: a. True

Explanation:

In Python and programming in general, functions serve the purpose of avoiding repetitive code.

By defining a function, we encapsulate a set of instructions that can be executed repeatedly simply by calling the function with different inputs.

This promotes code reusability, readability, and maintainability. So, the statement is true.

Answer:

a. True

The purpose of a function in Python, as in many programming languages, is to avoid writing the same lines of code over and over again. Functions allow you to encapsulate a set of instructions into a reusable block of code, which can be called multiple times from different parts of a program. This promotes code reusability, readability, and maintainability by reducing redundancy and promoting modular programming practices.

ACCESS MORE
EDU ACCESS