Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to store a return value in a variable in python

def myfunction():
    value = "myvalue"
    return value

var = myfunction()
print(var)

>>> "myvalue"
 
PREVIOUS NEXT
Tagged: #store #return #variable #python
ADD COMMENT
Topic
Name
1+8 =