Answers for "how to store a return value in a variable in python"

0

how to store a return value in a variable in python

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

var = myfunction()
print(var)

>>> "myvalue"
Posted by: Guest on August-18-2020

Code answers related to "how to store a return value in a variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language