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.