What is a global variable?

Questions & AnswersCategory: PythonWhat is a global variable?
Geek Boy Staff asked 2 years ago

What is a global variable?
a. A global variable is any variable defined inside a class.
b. A global variable is a variable that is available in the global scope.
c. A global variable is any variable defined inside a function.
d. A global variable is a variable that is available in the enclosing scope.