InterviewSolution
Saved Bookmarks
| 1. |
Differentiate between a package and a module in python. |
|
Answer» The module is a single python FILE. A module can IMPORT other modules (other python files) as objects. WHEREAS, a package is the folder/directory where different sub-packages and the modules reside. A python module is created by saving a file with the extension of .py. This file will have classes and functions that are reusable in the code as well as across modules. A python package is created by following the below steps:
|
|