COMPUTER FUNDAMENTALS

COMPUTER APPLICATIONS

OFFICE AUTOMATION SOFTWARE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
function inside another function is called ____
A
Nested function
B
Round function
C
Inner function
D
None of the above
Explanation: 

Detailed explanation-1: -Inner functions, also known as nested functions, are functions that you define inside other functions. In Python, this kind of function has direct access to variables and names defined in the enclosing function. Inner functions have many uses, most notably as closure factories and decorator functions.

Detailed explanation-2: -The nested function is also known as the inner function. Nested functions are nothing but a function defined inside another function.

Detailed explanation-3: -Nested (or inner, nested) functions are functions that we define inside other functions to directly access the variables and names defined in the enclosing function. Nested functions have many uses, primarily for creating closures and decorators.

There is 1 question to complete.