Python modules packages and libraries questions

What is the difference between a module, a package, and a library?
A module is a Python file that’s intended to be imported into scripts or other modules. It can contains functions, classes, and global variables.
A package is a collection of modules that are grouped together inside a folder to provide consistent functionality. Packages can be imported just like modules. They usually have a __init__.py file in them that tells the Python interpreter to process them as such.
A library is a collection of packages.
gk