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 ?
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
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 ?
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