global variable not assigned, newbie question
Peter Hansen
peter at engcorp.com
Tue Nov 2 08:47:31 EST 2004
Jean-Daniel Gamache wrote:
> Hi! here's a python newbie question ...
> why is my variable (myNum) not assigned the value 10 ???
[snip example]
http://www.python.org/doc/faq/programming.html#how-do-you-set-a-global-variable-in-a-function
This and many other questions are answered in the Frequently
Asked Questions (FAQ) list.
Also make sure you've read the tutorial
http://docs.python.org/tut/tut.html as it (I expect) would
answer that question as well.
-Peter
More information about the Python-list
mailing list