Assigning a value to single underscore _ in Python/IPython interpreter
The Python interpreter assigns the last expression value to _. This behaviour is limited to the REPL interpreter only, and is intended to assist in interactive coding sessions: >>> import math >>> math.pow(3.0, 5) 243.0 >>> result = _ >>> result 243.0 The standard Python interpreter goes to some length to not trample on user-defined … Read more