Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) Which of the following is the use of function in python?

(A) functions are reusable pieces of programs
(B) functions don’t provide better modularity for your application
(C) you can’t also create your own functions
(D) all of the mentioned
Correct answer : Option (A) - functions are reusable pieces of programs

Explanation:
 functions are reusable pieces of programs. they allow you to give a name to a block of statements, allowing you to run that block using the specified name anywhere in your program and any number of times.

Share

Discusssion

Login to discuss.