Computer Science
A program having multiple functions is considered better designed than a program without any functions. Why ?
Python Functions
6 Likes
Answer
A program having multiple functions is considered better designed than a program without any functions because
- It makes program handling easier as only a small part of the program is dealt with at a time, thereby avoiding ambiguity.
- It reduces program size.
- Functions make a program more readable and understandable to a programmer thereby making program management much easier.
Answered By
5 Likes
Related Questions
Assertion. A function declaring a variable having the same name as a global variable, cannot use that global variable.
Reason. A local variable having the same name as a global variable hides the global variable in its function.
Assertion. If the arguments in a function call statement match the number and order of arguments as defined in the function definition, such arguments are called positional arguments.
Reason. During a function call, the argument list first contains default argument(s) followed positional argument(s).
What all information does a function header give you about the function ?
What do you understand by flow of execution ?