Q:

Is return after for loop same as continue in python?

I know this might be a duplicate but I couldn't find it by searching. I was wondering if the following case is true:
def foo(A):
    for i in range(10):
        if A[i] < 10:
            return
        A[i] = A[i] - 10 

what happens when the above return? I know it doesn't end the function because it after the for loop. Is it same as having continue?

A:

It doesn't matter where you are within a function, return will exit it. The only exception to this is for nested functions (a def inside a def).
So what will happen is that when A[i] < 10 is True, it will exit.

