CoCalc Public Filestmp / 2016-09-01-125836.sagewsOpen in with one click!
Author: William A. Stein
def f(n): return m = n*2
Error in lines 1-2 Traceback (most recent call last): File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 957, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "<string>", line 2 return m = n*Integer(2) ^ SyntaxError: invalid syntax
f(10)
Error in lines 1-1 Traceback (most recent call last): File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 957, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> NameError: name 'f' is not defined