How to pass out the result from iterated function

JD Jiandong.Ge at
Wed Dec 10 21:16:56 CET 2008

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:
       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?


More information about the Python-list mailing list