The best, friendly and easy use Python Editor.

Chris Angelico rosuav at gmail.com
Thu Jan 24 11:01:16 EST 2013


On Fri, Jan 25, 2013 at 2:54 AM, rusi <rustompmody at gmail.com> wrote:
> - last expression with _ (underscore)

Small terminology quibble: That's not last expression, but last non-None result.

>>> 1+2
3
>>> _
3
>>> _,None
(3, None)
>>> _
(3, None)
>>> _[1]
>>> _
(3, None)

Otherwise, agree totally. Get to know the interactive interpreter, and
keep it handy.

ChrisA



More information about the Python-list mailing list