_
means the last result when you are working on python console
What does + _ mean in python [duplicate]
-
20-07-2023 - |
Question
In python docs
>>> tax = 12.5 / 100
>>> price = 100.50
>>> price * tax
12.5625
>>> price + _
113.0625
>>> round(_, 2)
113.06
I don't understand what does this mean
>>> price + _
and how does it work
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow