Python : Functions in Python

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

Function के अंदर global variable को modify करने के लिए कौन-सा keyword उपयोग होता है?

Which keyword allows modification of a global variable inside a function?
A. extern

B. static

C. global

D. nonlocal



Correct Answer :

C. global



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

global keyword बताता है कि variable global scope वाला है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad