[Solved] Why does my return statement ignore the rest of my code in a function in python?

[ad_1]

That:

return first_3

returns and therefore ends the function.
The remaining code is just ignored, because you will never get past the return.

[ad_2]

solved Why does my return statement ignore the rest of my code in a function in python?