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


That:

return first_3

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

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