In this video we will discuss python modules package and libraries and state the difference between them :
A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is available as the value of the global variable __name__.
A package is basically a directory with Python files and a file with the name init.py. This means that every directory inside of the Python path, which contains a file named init.py, will be treated as a package by Python. It's possible to put several modules into a Package.
A Python library is a reusable chunk of code that you may want to include in your programs/ projects. Compared to languages like C++ or C, a Python libraries do not pertain to any specific context in Python. Here, a 'library' loosely describes a collection of core modules.
link to python basics playlist : [ Ссылка ]
some terms for keyword:
python basics
what are modules in python
what are packages in python
what are libraries in python
what is the difference between module packages and libraries in python
python for beginners
basics of python
tags : #python_basics #i_know_python
Ещё видео!