I assumed it was a python thing, but I was wondering if there was some
way of putting a Sage wrapper over the assignment operator to return
the result.

-Alasdair

On Sep 7, 11:24 am, Jason Grout <[email protected]> wrote:
> On 9/6/10 6:02 PM, Alasdair wrote:
>
> > As you know, when you define a new variable:
>
> > sage: a = 2
>
> > the value is not automatically displayed.  So you have to:
>
> > sage: a = a+3; a
>
> > to display it.  This is different to all other CAS's (at least to my
> > knowledge), where a variable assignment automatically returns the
> > result unless you ask it not to.  Is there any way of coercing Sage
> > into automatically returning the result of a variable assignment?
> > This would be very handy for teaching.
>
> Not easily.  This is a python thing.  At least I don't know of a way to
> automatically print out something like that.
>
> Thanks,
>
> Jason

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

Reply via email to