Underscore Trick
Many of Python developers don't typically know about all the functionalities of the underscore in Python. But actually, you can use the underscore
It saves a lot of time and keystrokes if you are using your Python shell as a calculator (just like me 😄).
#tricks
Many of Python developers don't typically know about all the functionalities of the underscore in Python. But actually, you can use the underscore
_
to refer to the result of the previously executed command. Check out the code above.It saves a lot of time and keystrokes if you are using your Python shell as a calculator (just like me 😄).
#tricks