Report Bug
Qus : Which keyword allows modification of a global variable inside a function?
QusFunction के अंदर global variable को modify करने के लिए कौन-सा keyword उपयोग होता है?

A. extern
B. static
C. global
D. nonlocal


Solution
C. global



Explanation
global tells Python that the name refers to a global variable.

global keyword बताता है कि variable global scope वाला है।



Report Bug