sage: x=[a=5, a+=5, a-=3, a*=5, a/=8]
------------------------------------------------------------
  File "<ipython console>", line 1
x=[a=Integer(5), a+=Integer(5), a-=Integer(3), a*=Integer(5), a/=Integer(8)]
        ^
SyntaxError: invalid syntax

sage: x=[1,2+5,3]
sage: x
[1, 7, 3]
sage: x=[a=1,2+5,3]
------------------------------------------------------------
  File "<ipython console>", line 1
    x=[a=Integer(1),Integer(2)+Integer(5),Integer(3)]
        ^
SyntaxError: invalid syntax

sage: x=[a=5, b+=5, c-=3, d*=5, e/=8]
------------------------------------------------------------
  File "<ipython console>", line 1
x=[a=Integer(5), b+=Integer(5), c-=Integer(3), d*=Integer(5), e/=Integer(8)]
        ^
SyntaxError: invalid syntax

sage:

Obviously is it in Sage not possible to calculate list elements with an allocation??

Reagrds BB

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to