Professional Documents
Culture Documents
PYTHON LIBRARY
PYTHON LIBRARY
PYTHON LIBRARY
A module is a file that contain set of code or functions with the.py extension. A module
may contain variables, functions, classes etc. It is not executable.
As our program grows bigger, it may contain many lines of code. Instead of putting
everything in a single file, we can use modules to separate codes in separate files as per
their functionality. By grouping related code into modules, the code becomes easier to
understand and implement.
return x + y
Script:
A Script is a file that contain set of code with the .py extension and it is executable.
return x + y
result=add(5,6)
print(result)
Package :
Packages in Python are installed using a package manager like pip (a tool for installing
and managing python packages).
Ex. pip install pandas, pip install matplotlib, pip install NumPy
Library: