Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there some import I need to do for defining variables?

I have been running Sage 6.6 through VirtualBox and whenever I define a variable I get an error, like for example (for a,b,c = var('a,b,c')):

File "<stdin>", line 1, in <module>
  File "", line 10, in <module>
    exec compile(u'open("","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSxiLGMgPSB2YXIo4oCZYSxiLGPigJkpCnFlID0gKGEqeF4yICsgYip4ICsgYyA9PSAwKQpwcmludCBzb2x2ZShxZSwgeCk="),globals())+"\\n"); execfile(os.path.abspath(""))
  File "", line 1, in <module>

  File "/tmp/tmpAUEAbf/", line 3
    a,b,c = var(’a,b,c’)
SyntaxError: invalid syntax