Weird Python line of the day:
>>> [10, 20, 15, 12, 9][_]
[20, 15]
How can you achieve this?
Note: this is not something you’ll want to do in real code, just a Python curiosity!
@s_gruppetta Usually _ contains the last output in a repl. So I guess for you its something like 1:2 and then you are accesing those elements from your list.
@erikdesmedt @out_of_cheese Correct, and in the standard Python REPL, the underscore stores the last value, so you don't need to assign it, either