Re: How to pass out the result from iterated function

2008-12-11 Thread JD
On Dec 10, 2:25 pm, eric <[EMAIL PROTECTED]> wrote: > On Dec 10, 9:16 pm, JD <[EMAIL PROTECTED]> wrote: > > > > > I got a iterated function like this: > > > def iterSomething(list): > > has_something = False > > for cell in list: > > if something in cell: > > has_somethi

Re: How to pass out the result from iterated function

2008-12-10 Thread Rhodri James
On Wed, 10 Dec 2008 20:16:56 -, JD <[EMAIL PROTECTED]> wrote: 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:

Re: How to pass out the result from iterated function

2008-12-10 Thread James Stroud
JD wrote: 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 = outu

Re: How to pass out the result from iterated function

2008-12-10 Thread eric
On Dec 10, 9:16 pm, JD <[EMAIL PROTECTED]> wrote: > 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: >    

Re: How to pass out the result from iterated function

2008-12-10 Thread Gary Herron
JD wrote: > 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: >

How to pass out the result from iterated function

2008-12-10 Thread 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 prob