Report Bug
Qus : What does the nonlocal keyword refer to?
Qusnonlocal keyword किस scope को refer करता है?

A. Enclosing function scope
B. Built-in scope
C. Global scope
D. Local scope


Solution
A. Enclosing function scope



Explanation
nonlocal accesses a variable from the nearest enclosing function scope.

nonlocal nearest enclosing function के variable को access/modify करने देता है।



Report Bug