Learn Python by Building Data Science Applications
上QQ阅读APP看书,第一时间看更新

Order of execution

The order of execution works as in standard arithmetic calculations. This means we can use parentheses in our code:

>>> (2 + 10) / 2
6.0

>>> 10 / (1 + 1)
5.0

There could be any number of nested parentheses.