Q. What is the procedure to create own library/package in Python?


Answer =


To create own library or package in Python, we should do the following:

(i) Create a package folder having the name of the package/library
(ii) Add module files (.py files containing actual code functions) to this package folder
(iii) Add a special file__init__.py to it (even if the file is empty)
(iv) Attach this package folder to site-packages folder of Python installation.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post