How do I change Global Variable's Value (that is situated outside of any functions) from within a function?
Is it possible? How can I do it?
One thing: Don't show me better practices.
Thanks
Python : Changing Global Variable's Value from a function
Got it solved.
Got it solved now.
What I did is declare the global variable (eg. gvar) like this in a function:
Pretty cool.
What I did is declare the global variable (eg. gvar) like this in a function:
Code: Select all
global gvar