Is there any possibility that i could access a the variables that i have defined in a function
for example
I would like to retrieve the value and use it in another function
I was able to find a way accessing the variables declared in methods
my problem is when i do it with functions and
how does python work with the scope of the variables
for example
Code:
def foo(): i = 10 i = i + 10
I was able to find a way accessing the variables declared in methods
my problem is when i do it with functions and
how does python work with the scope of the variables
Comment