Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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(' ')
    
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #global #python
ADD COMMENT
Topic
Name
5+6 =