Let me also say that you seem to be mistaken in your usage of continue. You would use continue to skip the rest of the code within a loop, much like break, however you will continue onto the next iteration instead of completely breaking out of the loop.
You are also confused on the return statement. Return literally returns a value from a function. So by saying return x, there should be a variable waiting to catch that value at the function call.
Example:
>>> def funcA():
... # This function returns a value
... g = 5
... return g
...
>>> g = 100
>>> ret = funcA()
>>> g
100
>>> ret
5
>>>
See how g has a different scope within the function as it does outside the function? It's not the same variable just because it uses the same name. By saying return however, that variable is being sent back from the function to the main portion of code.
I hope that clears up some of your confusion.