News

In Python, a variable declared outside of the function or in global scope is known as a global variable. This means that a global variable can be accessed inside or outside of the function.
Python---Global-Variables Global Variables Variables that are created outside of a function (as in all of the examples in the previous pages) are known as global variables.