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.
| 1 | initial version | |
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.
| 2 | No.2 Revision |
If I have a global variable N, how can i set N = smth inside of defined function?
def foo()
N = doesn't change global N, because Sage makes N local variable.
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.