Say that we have this function:
def my_function:
for i in some_iterable:
do_something();
When I call this function inside another for loop:
for i in something:
my_function()
Does the for loop in my_function()
maintain the status of i
or does the loop start from i = 0
each time the function is called? If latter is the case, how can I continue to iterate the for loop inside the function every time the function is called?