Friday, 28 February 2020

What are module and package in python?


What is module?
Python basic tool for organizing code is module.
you load modules by using import keyword.

to import module
import my_module

What is package?
A package in python is just special type of module that define characteristics
 of a package is that it contain other modules including other packages,

So, packages are way to define hierarchies of modules in Python.This allow you
to group modules with similar functionalities together in ways that
communicates their cohesiveness.


No comments:

Post a Comment