Shamal CodeCraft Dreams
All PRACTICAL SLIPS SOLUTIONS
Thursday, July 27, 2023
Get All BCA/BBA(CA) Practical Slips Solution of Savitribai Phule Pune University(SPPU)
How to create User Define Package in Python
Friday, May 26, 2023
Create User Define Package in Python
Step1: Create one Folder Myapp
Step2: Inside Myapp create Sub-Folder Mypackage
Step3: Create an empty __init__.py file inside Mypackage Sub-Folder
Step4: Create two modules Message.py and Mathematics.py inside Mypackage Sub-Folde
follow the following steps:
2)write the following code inside the Mathematics.py Module
Step5: Create p1.py file Myapp folder and write
following code:
Step6:Used to choose specific
functions from modules in the package folder and make them available import
Modify
__init__.py as below:
Subscribe to:
Posts (Atom)