what is the difference between package and module in python?

Question:

i read a many articles about the difference between package and module in python but i can’t understand any thing can any one explain it for me ?

Asked By: ahmed omran

||

Answers:

A module is a python file with functions, classes and so on for you to import. A package are a way to structure multiple modules in an organized way, with tools like defining a __init__.py, and maybe an __all__.py, that specify how that package will behave at import

check https://docs.python.org/3/tutorial/modules.html#packages

Answered By: PedroTurik
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.