CBSE Class 12 Computer Science
Question 36 of 62
Using Python Libraries — Question 4
Back to all questionsA library refers to a collection of modules that together cater to specific type of requirements or applications.
The procedure to create own library in Python is shown below:
- Create a package folder having the name of the library.
- Add module files (.py files containing actual code functions) to this package folder.
- Add a special file __init__.py to it(even if the file is empty).
- Attach this package folder to site-packages folder of Python installation.