Guided Notes
Modules & Packages
import, aliases, from-imports, submodules, pip, and exploring unfamiliar objects.
Importing modules
Slide 1 / 5A module is a file of Python code ā variables and functions ā that you load with import.
import math math.pi ā 3.141592653589793 math.log(32, 2) ā 5.0 math.sqrt(16) ā 4.0
Everything in the module is reached with a dot. The standard library ā math, random, datetime, json, and hundreds more ā comes with Python, no install needed.
