Apr-08-2022, 06:40 AM
(Apr-08-2022, 05:57 AM)Oshadha Wrote: You return the value from the function, and assign it again out of the function.that is the better approach, pass arguments and return values.
Just FYI, what is the problem with your code using
global
is that you have to declare the variable global inside the function
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