check line 41, do you really want the return statement at that place in the function and with that indentation? what will happen if the
Note that there is a LOT of redundant code...
else
block is executed? print_string
has local scope - it exists only inside the function and is not accessible outside it. Do you want lines 43-48 inside the function. If it should be outside - ship_method
(local scope inside the function) will not be accessible and will cause NameErrorNote that there is a LOT of redundant code...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs