Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

In interactive mode, the last printed expression is assigned to the variable _

>>> tax = 12.5 / 100
>>> price = 100.50
>>> price * tax
12.5625
>>> price + _
113.0625
>>> round(_, 2)
113.06
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #In #interactive #printed #expression #assigned #variable
ADD COMMENT
Topic
Name
4+4 =