Python Class 12 | Introduction to Python Libraries | Module in Python | Modularity

Veröffentlicht am: 26 April 2020
auf dem Kanal: Happy Compiler
127
12

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


Auf dieser Seite können Sie das Online-Video Python Class 12 | Introduction to Python Libraries | Module in Python | Modularity mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Happy Compiler 26 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 127 Mal angesehen und es wurde von 12 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!