In this video, you'll learn about modules and packages.
A module is a file that contains code.
So here we see a module with the name greeting.py.
It defines a function sayHello,
and it uses the sayHello name,
and it returns a hello followed by a name,
where the name is a variable that will be used.
And you can use it in another file,
as in import greeting, which will import the module,
and then you use print greeting,
which is the name of the module,
dot sayHello,
and for instance,
which is the name that you want to print then.
Now we have a package.
A package is a complete directory that contains modules
and an __init__.py file.
Functions from the modules in a package can be imported in code
using from package dot module one import my function.
And using packages makes it easier to implement standardization.
Packages are also one of the reasons behind the success of Python,
because it is what makes Python easily extensible.