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(' ')
    
 
PREVIOUS NEXT
Tagged: #global #python
ADD COMMENT
Topic
Name
4+2 =