Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to edit variables with functions in python

x=1
def example():
  	#you cant have a local variable named x and then declare x global coz error
    global x
    x=x+1
    #the global variable is 2 now
    
 
PREVIOUS NEXT
Tagged: #edit #variables #functions #python
ADD COMMENT
Topic
Name
5+6 =