J
JD
I got a iterated function like this:
def iterSomething(list):
has_something = False
for cell in list:
if something in cell:
has_something = True
output = something
if has_something:
iterSomething(output)
else:
final_out = outupt
The problem is how can I read this final_out outside of the function.
I tried the global statement, it seems not work. Any idea?
JD
def iterSomething(list):
has_something = False
for cell in list:
if something in cell:
has_something = True
output = something
if has_something:
iterSomething(output)
else:
final_out = outupt
The problem is how can I read this final_out outside of the function.
I tried the global statement, it seems not work. Any idea?
JD