This video is a guide to creating modules and packages in Python. Module is simply a python executable file with some reusable functionalities. It can be in the form of functions, constants or classes defined in that code file.
Packages provides futher modularity to our code by segregating larger functionality into directories which can be reusable. To create a package, we may need to create empty file with init.py filename.
We can import the functionalities from module or package using import keyword. Sometimes, to avoid conflicts and to better use variable names, we can namespace those variables in a package or even rename them using 'as' keyword. This video explains all these concepts and lot more.
#Python #LearnProgramming
If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.
Follow us on Facebook, Twitter, Instagram
Facebook Link: / techprogrammer1
Twitter Link: / techprogrammer1
Tumblr Blog: https://www.tumblr.com/blog/techprogr...