What is the purpose of the nonlocal keyword in Python?
(A)
To declare a variable as non-local
(B)
To access a variable from the global scope
(C)
To declare a variable as local
(D)
To access a variable from an enclosing (non-global) scope
Answer: (A)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles