The underscore has a memory power in Python

The underscore has a memory power in Python
The underscore has a memory power in Python

The underscore (_)is used to retrieve the result of the last expression executed in the command line interface.

>>> num 1= 10

>>> num2= 20

>>> num1 + num2

30

>>> num3 = _ +10

>>> num3

40

Posted in PYTHON.

Leave a Reply

Your email address will not be published. Required fields are marked *