Nov-10-2018, 06:40 PM
I'm confused. Do you need to change a global variable to the result of a function? Then you would just return the value from the function, and assign that to the global variable:
SPAM = 1 def eggs(): return 2 SPAM = eggs()Or is your assignment to so the change to the global variable within the function without using the global statement?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures