This video will explain about the Python libraries. Library is a collection of modules. A modules is a small individual component of a program. A program is divided into small components called modules and this process is called Modularity.
A Library refers to a collection of modules that together cater to specific type of needs or applications.
A library can have multiple modules(and packages) in it.
Some common used Python Libraries:
1. Python Standard library: This library is distributed with python that contains various types of functionalities. Some commonly used module of Python Standard library are
Math module * random module * urllib module etc.
2. NumPy library: It Provides some advance math functionalities.
3. SciPy library: used for algorithmic and scientific calculations.
4. Matplotlib libarry: It offers many functions and tools for preparing plots, charts, graphs using python program.
The way of partitioning (dividing) a program into smaller individual components is called modularity.
And these smaller components is called Modules. A module is separate unit in itself.
We can say a module is like a function but a bit different from it.
Why to partitioning a program into smaller units?
→ to reduce the complexity to some extent.
→ to reuse the contents in other programs without rewriting the
same set of code.
→ it creates a number of well defined , documented boundaries
within the program.
Once created. reuse as many times; this is the real beauty of modules.
A python module is a normal Python file(.py file) containing one or more of the following objects.
docstrings: triple quoted string (‘‘‘...’’’); useful for documentation.
varaibles & constants : labels for data
classes
objects
statements: set of instructions
functions
A module in general is a independent grouping of code and data (variables, definitions, statements and functions)
#class12python #libraries #modules #pythonmodule #class12 #12cs
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Class 12 | Introduction to Python Libraries | Module in Python | Modularity durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Happy Compiler 26 avril 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 127 fois et il a aimé 12 téléspectateurs. Bon visionnage!