User Tools

Site Tools


python:interactive

Interactive "_"

Only in the interactive interpreter, you can use _ (underscore) to get the last printed statement. For example:

>>> 1 + 2
3
>>> _
3
>>> 

python/interactive.txt · Last modified: 2013/03/16 17:40 (external edit)