When I'm using the Python interactive interpreter, I frequently find myself doing this:
>>> a = "starting value"
>>> foo(a)
"something I don't want"
>>> bar(a)
"what I wanted"
>>> a = bar(a)
Is there any way to just do:
>>> bar(a)
"what I wanted"
>>> a = thing_from_before
That is, is there any way to refer to the variable that was printed out by the last command that I ran?