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
On this page of the site you can watch the video online Python Class 12 | Introduction to Python Libraries | Module in Python | Modularity with a duration of hours minute second in good quality, which was uploaded by the user Happy Compiler 26 April 2020, share the link with friends and acquaintances, this video has already been watched 127 times on youtube and it was liked by 12 viewers. Enjoy your viewing!