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
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.
Does any online documentation about Python global variables help? Here is a typical stackoverflow question about them...
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-04-04 08:37:24 +0100
Seen: 2,926 times
Last updated: Apr 04 '12