Vidyalelo
Python · Q132

Functions in Python

Programming · Python · question 132

Q132

What does the nonlocal keyword do when used in a function?

A.
It indicates that a variable is defined in the nearest enclosing scope
Answer
B.
It defines a new variable
C.
It specifies the return type of the function
D.
It is used to create a loop

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board