This commit is contained in:
2018-01-17 09:36:04 -05:00
parent 1f695b6758
commit 540733f630
+13
View File
@@ -15,6 +15,19 @@ This is known as the Python interpreter, and is a REPL (ReadEvalPrint Loop
Tricks
++++++
``_`` Trick
///////////
The ``_`` variable can be used to reference the last thing that was eval'd (e.g. automatically printed to the screen). For example::
>>> 1
1
>>> a = _
>>> print(a)
1
Very useful when using the interactive interpreter!
Bytecode Trick
//////////////