¡@

Home 

python Programming Glossary: seta

Why does assigning to my global variables not work in Python?

http://stackoverflow.com/questions/929777/why-does-assigning-to-my-global-variables-not-work-in-python

script a 7 def printA print Value of a is d a def setA value a value print Inside setA a is now d a print Before setA.. Value of a is d a def setA value a value print Inside setA a is now d a print Before setA printA setA 42 print After setA.. value a value print Inside setA a is now d a print Before setA printA setA 42 print After setA printA Gives the unexpected..