September 2026
1051 pages
35h 4m
English
We’ll start with those modules of the standard library that can be used to perform mathematical calculations in the broadest sense. Table 26.1 lists the modules that will be described in this chapter.
|
Module |
Description |
Section |
|---|---|---|
|
math |
Mathematical functions |
|
|
cmath |
Mathematical functions for complex numbers |
|
|
random |
Generate random numbers or random selections from given collections |
|
|
statistics |
Functions for statistical calculations |
|
|
decimal |
Precise representation of decimal numbers |
|
|
hashlib |
Hash functions |
Table 26.1 Mathematical Modules of the Standard Library
Note that at this point, we’ll discuss ...
Read now
Unlock full access