[docs] 3.1.1. Numbers

Art Zavala zavalaat at hotmail.com
Tue Mar 27 20:59:47 EDT 2018


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

Should expression be expression result?


>>> tax = 12.5 / 100
>>> price = 100.50
>>> price * tax
12.5625
>>> price + _
113.0625
>>> round(_, 2)
113.06

>>> tax * _  is not the same as  tax * price in the third statement!


Regards,

ART T ZAVALA




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180328/cffa17a3/attachment.html>


More information about the docs mailing list