Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

global variables

If I have a global variable N, how can i set N = smth inside of defined function?

def foo()
  N = 10

10

doesn't change global N, because Sage makes N local variable.