Long module names can make repeated references awkward. An import statement using as binds the module to a shorter name: import mymod as mm. The original name mymod is not defined; mm is. section 8.0
Shortening a frequently used module name
import numpy as np # Refer to the module through np np section 8.0
A module alias changes the name available in your namespace, not the module’s contents. This differs from importing selected attributes, such as from os import sep, which defines sep rather than os. section 8.0


