Import statements
The import statements specify the Python modules that define functions used elsewhere in the script. If you are using several functions from the same module, consider importing the whole module.
The following example imports the
Enum
functions from the
enum
library and imports the
datetime
module.
from enum import Enum
import datetime