A module is a file containing Python code that you can reuse. Python comes with hundreds of built-in modules! Instead of writing everything from scratch, you import what you need.
↗️
Loading editor...
↶
↷
Here we imported the math module. It gives us access to mathematical functions like sqrt() (square root) and constants like pi.