definition of global variable in python code example
Example: global in python
a = 'this is a global variable'
def yourFunction(arg):
#you need to declare a global variable, otherwise an error
global a
return a.split(' ')
a = 'this is a global variable'
def yourFunction(arg):
#you need to declare a global variable, otherwise an error
global a
return a.split(' ')