Ask Your Question

Revision history [back]

sage_eval: invalid syntax

Hello! I try in Sage 5.7 Notebook (localhost, not sagenb.org):

sage_eval("y=3")
...
y=Integer(3)
 ^
SyntaxError: invalid syntax

What's wrong? Thanks.

sage_eval: invalid syntax

Hello! I try in Sage 5.7 Notebook (localhost, not sagenb.org):

sage_eval("y=3")
...
y=Integer(3)
 ^
SyntaxError: invalid syntax

What's wrong? Thanks.

Upd

 sage_eval(("y=3", "y"))
 3
 y
 ....
 NameError: name 'y' is not defined

I want y was defined. What should I do? Thanks.