How to Import a Module in Python with import and from
Python ships with hundreds of modules, such as math, datetime and os, and you can install thousands more. A program uses one by importing it: import math brings in the whole module, and from math import pi brings in just one name from it.
