Hi @ajaxmaster07306 ,
@mkordik made an important point. When a
return statement is encountered while a function is executing, that function execution terminates. Therefore, a
print statement following a
return statement in the same block does not get executed. It is "dead code".
Also take into account the fact that defining a function does not cause it to execute. For it to execute, the function must be called. So, if you would like to see your
print something, call it by adding a statement such as this at the end of your code ...
Be sure not to indent that statement, otherwise it will become part of the function definition, and will not be sufficient to initiate its execution.