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

Pubblicato il: 26 aprile 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Python Class 12 | Introduction to Python Libraries | Module in Python | Modularity della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Happy Compiler 26 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 127 volte e gli è piaciuto 12 spettatori. Buona visione!