Source Code:
(back to article)
x = 10 def foo(): global x x = 20 print(x) # prints 10 foo() print(x) # prints 20
Result:
Report an issue