Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get variable from function python

def function():
	x = "random"
    print("random")
    return x
  
a = function() #Runs line 3, makes a the return value ("random")
 
PREVIOUS NEXT
Tagged: #variable #function #python
ADD COMMENT
Topic
Name
2+4 =