Built-in Modules
This section gives a brief introduction to some of the built-in packages in Python, including the math module.
We'll cover the following...
We'll cover the following...
Introduction to modules
The standard Python distribution comes with about 300 modules; many more are available, both commercial and free. Before writing code to solve problems in a given domain, it is a good idea to first check to see what is already available.
This chapter will explore the built-in math, statistics, and os (operating system) packages.
Math module
The math module (import math) includes a lot of functions that are not available by default. Here are some of them:
-
ceil(x)...