KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Which of the following statements is not true for a function in Python?

  1. It is a program module.
  2. It is reusable piece of a program.
  3. It is not a program module.
  4. All of the above

Python Functions

1 Like

Answer

It is not a program module.

Reason — A function is a program module (a part of the program) used simultaneously at different instances to perform a specific task. It is also a reusable piece of code. Therefore, the statement "It is not a program module" is not true for a Python function.

Answered By

1 Like


Related Questions