Okay, so is there a way to return a value from a function - the way return does - but not stop the function - the way return does?
return
I think you are looking for yield. Example:
yield
import time def myFunction(limit): for i in range(0,limit): time.sleep(2) yield i*i for x in myFunction(100): print( x )