CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2016-12-08-131537.sagewsOpen in CoCalc

Examples for support purposes...

def f():
    a = [0]
    a[0]
Error in lines 3-3 Traceback (most recent call last): File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 968, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> NameError: name 'a' is not defined
s="""def f():
    a = [0]
    a[0]"""
len(s)
repr(s)
32 "'def f():\\n a = [0]\\n\\xc2\\xa0\\xc2\\xa0\\xc2\\xa0 a[0]'"
t = u" "
t
u'\xa0'
print t
 
t[0]
u'\xa0'
ord(t[0])
160