On Tuesday, 11 April 2017 16:53:48 UTC-6, Robert Beezer wrote:
>
> Maybe it is a *convention* that "_" is the previous result. 
>
> "_" is a legitimate variable name in Python, so it is sometimes used for 
> results 
> you don't really intend to keep. 
>
> The following produces 8 in the Sage Cell: 
>
> _ = 1 + 2 
> _ + 5 
>
> Rob 
>

Well, it is a convention that _ is automatically assigned the last result 
and on Sage command line you can do

sage: 1 + 2
3
sage: _ + 5
8

My point was that there are two separate computations here, but when 
entered in a single cell these two lines make "one computation", so _ does 
not get any value (also 3 is not displayed since only the last result is 
shown).

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/e29caf38-0884-44f7-b4c5-ad8c4d640b12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to