global variables
If I have a global variable N, how can i set N = smth inside of defined function?
def foo()
N = 10
doesn't change global N, because Sage makes N local variable.
add a comment
Does any online documentation about Python global variables help? Here is a typical stackoverflow question about them...
Asked: 2012-04-04 08:37:24 +0100
Seen: 3,336 times
Last updated: Apr 04 '12
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.