September 2026
1051 pages
35h 4m
English
In this chapter, we’ll describe numeric data types, the first major group of data types in Python. Table 11.1 lists all the data types belonging to this group and describes their purpose.
|
Data Type |
Description |
Mutability* |
Section |
|---|---|---|---|
|
int |
Integers |
Immutable |
|
|
float |
Floats |
Immutable |
|
|
bool |
Boolean values |
Immutable |
|
|
complex |
Complex numbers |
Immutable |
|
|
* All numeric data types are immutable. This doesn’t mean that there are no operators that change numbers, but rather that a new instance of the respective data type must be created after each change. So from the programmer's perspective, there is hardly any difference at first. For ... | |||
Read now
Unlock full access