objects as ones that you want to stay the same, such as
constants. Mutable objects, on the other hand, are
objects that you will be adding elements to and
subtracting from on a regular basis.
Table 3-2 lists the most commonly used Python data
types. The rest of this section covers them in more detail.
Table 3-2 Python Data TypesNameTypeMutableDescriptionInte
geri
n
tN
oWhole numbers, such as 6, 600, and 1589Boo
leanb
o
o
lN
oComparison value, either True or FalseStri
ngs
t
rN
oSequence of characters delimited by
quotes, such as "Cisco", 'Piper', and "2000"List l
i
s
tY
e
sOrdered sequence of objects, such as [10,
"DNA", 19.8]Tup
let
u
pN
oOrdered sequence of immutable objects,
such as (10, "DNA", 19.8)Dict
iona
ryd
i
c
tY
e
sUnordered key:value pairs, such as
{"key1":"value1","name":"Pip"}