INTRODUCTION TO PYTHON
MODULE
MODULE :
a module is simply a file that contains a python code
the python solution is to place the code in separate code groupings
of function are called modules
modules that contains source code for generic purpose are called
as librarie
MAIN COMPONENTS :
Library or package
Module
Functions or sub modules
ADVANTAGES OF PYTHON MODULE :
Putting code into module is useful because of its ability to
import the module functionality
A module can be used in some other python code hence , it
provides the facility of code reusability
It creates number of well-defiened , documented boundaries
within a program
A module allows us to logically organize our python code
Simple as module makes the code easier to understand and
use
Similar type of attributes can be categorized and placed in a
single module