Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python global variable that can be iterated

COUNT = 0

def increment():
    global COUNT
    COUNT = COUNT+1

increment()

print COUNT
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #global #variable #iterated
ADD COMMENT
Topic
Name
1+3 =