Apr-11-2018, 05:26 AM
Because you try to assign value to MESSAGE, thus making it different variable with local scope (local to function). Of course you can use
global
keyword to make it global variable, but that is considered bad style (using globals)
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