- #1
fog37
- 1,568
- 108
- TL;DR Summary
- module/library difference
Hello,
I am trying to fully understand the difference between module, library, and package in Python.
I think a module is a single file with a specific functionality.
A library is like a directory: it contains multiple files, i.e. multiple modules.
A package contains multiple libraries and sub-packages.
For example, is the graphic program Turtle a library or a module? The command import is used to import Turtle into the Python program. Is the command import used exclusively for modules?
Thanks!
I am trying to fully understand the difference between module, library, and package in Python.
I think a module is a single file with a specific functionality.
A library is like a directory: it contains multiple files, i.e. multiple modules.
A package contains multiple libraries and sub-packages.
For example, is the graphic program Turtle a library or a module? The command import is used to import Turtle into the Python program. Is the command import used exclusively for modules?
Thanks!
Last edited: