0% found this document useful (0 votes)
30 views

Introduction To Python Module

Uploaded by

endofthebeygamer
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Introduction To Python Module

Uploaded by

endofthebeygamer
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like