KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Which of the following statements is true for functions in Python?

  1. Function is a reusable code segment of program.
  2. Function does not provide better modularity for your program.
  3. You cannot create your own functions in Python.
  4. All of these

Python Functions

2 Likes

Answer

Function is a reusable code segment of program.

Reason — Functions allow reusability of code by enabling a block of code to be defined once and used multiple times in a program.

Answered By

2 Likes


Related Questions