Ask Your Question

Revision history [back]

Could you clarify your question? The following code works

sage: expression = SR.zero()
sage: for i in [SR.var('x'), SR.var('y'), SR.var('z')]:
....:     expression = expression + i
sage: expression
x + y + z