How can a person create a package in python IDLE?

What is  python :

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

What is a package in python :

A package is basically a directory containing Python files and a file named __init__. py. This means that every directory in the Python path contains a file named __init__. py will be treated as a package by Python.

To create packages in python we need to do follow 3 simple steps

1. Firstly we create a directory file and gives its package name.

2. Then we put the classes and required functions in it.

3. Finally we create an __init__.py file inside the directory because python knows the directory is a package.

Comments

Popular posts from this blog

proassignment help backlink data index 41

Programming shark backlink data index 67

programming shark backink data index 31