2.1.2 Variables and Assignment: Chapter 2. Introduction To Python
2.1.2 Variables and Assignment: Chapter 2. Introduction To Python
Introduction to Python
using parentheses to group subexpressions, e.g., (x+y)*2 first adds x and y, and
then multiplies the result by 2.
The operators on type bool are:
It first binds the names pi8 and radius to different objects of type int. It then
binds the name area to a third object of type int. This is depicted in the left
panel of Figure 2.2.
8 If you believe that the actual value of is not 3, youre right. We even demonstrate that
fact in Chapter 15.
11