SlideShare a Scribd company logo
Understand ng Modules and
Packages n Python
An Overview of Python's Modular Programming
•How do modules help
you write clear and
focused code in Python?
Python lets you write code in small parts called
modules. You can use the ‘import’ statement to
combine modules easily. Modules help you write
clear and focused code. Python is good for making
big and clean software. Python modules make
your code easy tounderstand and work with.
What are Modules?
A Python module is a file containing
Python definitions and statements. A
module can define functions, classes, and
variables. A module can also include
runnable code. Grouping related code into a
module makes the code easier to
understand and use. It also makes the
code logically organized. The file name is
the module name with the suffix .py
appended.
Examples of common modules (e.g.,
math, random, datetime)
Creating and
Using
Modules
How to create a module
TO CREATE A MODULE, YOU JUST
NEED TO SAVE YOUR CODE IN A
FILE wITH THE .pY EXTENSION.
Importingmodulesin
Python
THEN YOU CAN IMpORT THE
MODULE IN ANOTHER FILE AND
USE THE FUNCTION:
Examples of Modules
6. json: Enables JSON encoding and decoding.
7.requests: Simplifies sending HTTP requests.
8. re: Supports regular expressions for pattern
matching.
9.csv: Facilitates reading and writing CSV files.
10.collections: Offers alternatives to built-in
types like dictionaries and lists.
1. mat: Provides mathematical functions.
2. os :Offers a way of using operating system-
dependent functionality.
3.sys: Provides access to some variables used
or maintained by the Python interpreter.
4. datetime: Allows manipulation of dates and
times.
5. random: Implements pseudo-random number
generators.
.
What are packages?
•A package is a container that contains various
functions to perform specific tasks. For
example, the math package includes the sqrt()
function to perform the square root of a
number.
•While working on big projects, we have to deal
with a large amount of code, and writing
everything together in the same file will make
our code look messy. Instead, we can separate
our code into multiple files by keeping the
related code together in packages.
•Now, we can use the package whenever we
need it in our projects. This way we can also
reuse our code.
CreatingandUsing
Packages
•Create a new folder
named D:MyApp .
•Inside MyApp ,
create a subfolder
with the name
'mypackage'.
•Create anfunctions.py file
in the mypackage folder.
•Usinga Python-aware
editor like IDLE,
create modules greet.py
and functions.py with
the following code:
Modules and Packages in Python Programming Language.pptx
Namespaceand
Scope
• A namespaceisacollectionofnamesthatrefertoobjects
• Pythonhasdifferenttypesofnamespaces,suchasbuilt-in, global, local,and
enclosing
• Thebuilt-innamespacecontainsthenamesofthebuilt-inobjects,suchasint,
str, print,etc.
• Theglobalnamespacecontainsthenamesoftheobjectsdefinedatthetoplevelof
amodule
• Thelocalnamespacecontainsthenamesoftheobjectsdefinedinsideafunctionora
class
• A scopeistheregionofcodewhereanameisvisibleandcanbeaccessed
• Pythonhasfourlevelsofscope:local,enclosing,global, andbuilt-in(LEGB)
• Thelocalscopeistheinnermostscopeandcontainsthenamesdefinedin
thecurrentfunctionorclass
• Theenclosingscopeisthescopeoftheenclosingfunctionorclass,ifany
• Theglobalscopeisthescopeofthecurrentmodule
In conclusion,
understanding and
harnessing the power of
modules and packages in
Python is paramount for
building scalable,
organised, and
maintainable code. As
we've explored, modules
encapsulate code,
making it reusable and
preventing naming
conflicts. Packages take
this a step further,
providing a structured
way to organise modules
into a hierarchical
directory structure.
• Conclusion
By adopting modular
programming practices,
developers can enhance
code readability, promote
code reuse, and streamline
collaboration within
projects. As you continue
your Python journey,
remember the significance
of creating well-designed
modules and packages, as
they form the backbone of
robust and efficient
software development.
Thankyou
•1. 23BAI11216 Shresth Kumar
Jha
2. 23BAI11286 ISHAAN ROY
3. 23BCG10012 ARUNAVA
MUKHERJEE
4. 23BCG10054 DEEP NITIN
WATH
Ad

More Related Content

Similar to Modules and Packages in Python Programming Language.pptx (20)

Modules
ModulesModules
Modules
Mohamed Essam
 
Functions in Python
Functions in PythonFunctions in Python
Functions in Python
Kamal Acharya
 
Python: Modules and Packages
Python: Modules and PackagesPython: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Modules and Packages in Python_Basics.pdf
Modules and Packages in Python_Basics.pdfModules and Packages in Python_Basics.pdf
Modules and Packages in Python_Basics.pdf
RavindraTambe3
 
Python module 3, b.tech 5th semester ppt
Python module 3, b.tech 5th semester pptPython module 3, b.tech 5th semester ppt
Python module 3, b.tech 5th semester ppt
course5325
 
Using python libraries.pptx , easy ppt to study class 12
Using python libraries.pptx , easy ppt to study class 12Using python libraries.pptx , easy ppt to study class 12
Using python libraries.pptx , easy ppt to study class 12
anikedheikhamsingh
 
Class 12 CBSE Chapter: python libraries.pptx
Class 12 CBSE Chapter: python libraries.pptxClass 12 CBSE Chapter: python libraries.pptx
Class 12 CBSE Chapter: python libraries.pptx
AravindVaithianadhan
 
Python data structures and modules
Python data structures and modulesPython data structures and modules
Python data structures and modules
Mohamed Essam
 
Artificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a NutshellArtificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a Nutshell
kannanalagu1
 
20120314 changa-python-workshop
20120314 changa-python-workshop20120314 changa-python-workshop
20120314 changa-python-workshop
amptiny
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
Eran Shlomo
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
Mohamed Essam
 
this includes basics about python modules and packages introduction
this includes basics about python modules and packages introductionthis includes basics about python modules and packages introduction
this includes basics about python modules and packages introduction
ssuseree48e0
 
Python short notes on modules and applications
Python short notes on modules and applicationsPython short notes on modules and applications
Python short notes on modules and applications
ssuseree48e0
 
Introduction to package manager
Introduction to package managerIntroduction to package manager
Introduction to package manager
yashobantabai
 
Introduction to Python Programming Language For Artificial Intelligence
Introduction to Python Programming Language For Artificial IntelligenceIntroduction to Python Programming Language For Artificial Intelligence
Introduction to Python Programming Language For Artificial Intelligence
saraahmed870035
 
Python Course In Chandigarh
Python Course In ChandigarhPython Course In Chandigarh
Python Course In Chandigarh
Excellence Academy
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
HaythamBarakeh1
 
Modules 101
Modules 101Modules 101
Modules 101
gjcross
 
Chapter - 4.pptx
Chapter - 4.pptxChapter - 4.pptx
Chapter - 4.pptx
MikialeTesfamariam
 
Python: Modules and Packages
Python: Modules and PackagesPython: Modules and Packages
Python: Modules and Packages
Damian T. Gordon
 
Modules and Packages in Python_Basics.pdf
Modules and Packages in Python_Basics.pdfModules and Packages in Python_Basics.pdf
Modules and Packages in Python_Basics.pdf
RavindraTambe3
 
Python module 3, b.tech 5th semester ppt
Python module 3, b.tech 5th semester pptPython module 3, b.tech 5th semester ppt
Python module 3, b.tech 5th semester ppt
course5325
 
Using python libraries.pptx , easy ppt to study class 12
Using python libraries.pptx , easy ppt to study class 12Using python libraries.pptx , easy ppt to study class 12
Using python libraries.pptx , easy ppt to study class 12
anikedheikhamsingh
 
Class 12 CBSE Chapter: python libraries.pptx
Class 12 CBSE Chapter: python libraries.pptxClass 12 CBSE Chapter: python libraries.pptx
Class 12 CBSE Chapter: python libraries.pptx
AravindVaithianadhan
 
Python data structures and modules
Python data structures and modulesPython data structures and modules
Python data structures and modules
Mohamed Essam
 
Artificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a NutshellArtificial Intelligence concepts in a Nutshell
Artificial Intelligence concepts in a Nutshell
kannanalagu1
 
20120314 changa-python-workshop
20120314 changa-python-workshop20120314 changa-python-workshop
20120314 changa-python-workshop
amptiny
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
Eran Shlomo
 
2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx2.Data_Strucures_and_modules.pptx
2.Data_Strucures_and_modules.pptx
Mohamed Essam
 
this includes basics about python modules and packages introduction
this includes basics about python modules and packages introductionthis includes basics about python modules and packages introduction
this includes basics about python modules and packages introduction
ssuseree48e0
 
Python short notes on modules and applications
Python short notes on modules and applicationsPython short notes on modules and applications
Python short notes on modules and applications
ssuseree48e0
 
Introduction to package manager
Introduction to package managerIntroduction to package manager
Introduction to package manager
yashobantabai
 
Introduction to Python Programming Language For Artificial Intelligence
Introduction to Python Programming Language For Artificial IntelligenceIntroduction to Python Programming Language For Artificial Intelligence
Introduction to Python Programming Language For Artificial Intelligence
saraahmed870035
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
HaythamBarakeh1
 
Modules 101
Modules 101Modules 101
Modules 101
gjcross
 

Recently uploaded (20)

Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
Viam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdfViam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdf
camilalamoratta
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Q1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor PresentationQ1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor Presentation
Dropbox
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Build With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdfBuild With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdf
Google Developer Group - Harare
 
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptxSmart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Seasia Infotech
 
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Mike Mingos
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Zilliz Cloud Monthly Technical Review: May 2025
Zilliz Cloud Monthly Technical Review: May 2025Zilliz Cloud Monthly Technical Review: May 2025
Zilliz Cloud Monthly Technical Review: May 2025
Zilliz
 
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
Lorenzo Miniero
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
Viam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdfViam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdf
camilalamoratta
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Q1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor PresentationQ1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor Presentation
Dropbox
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptxSmart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Seasia Infotech
 
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Mike Mingos
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Zilliz Cloud Monthly Technical Review: May 2025
Zilliz Cloud Monthly Technical Review: May 2025Zilliz Cloud Monthly Technical Review: May 2025
Zilliz Cloud Monthly Technical Review: May 2025
Zilliz
 
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
RTP Over QUIC: An Interesting Opportunity Or Wasted Time?
Lorenzo Miniero
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
 
Ad

Modules and Packages in Python Programming Language.pptx

  • 1. Understand ng Modules and Packages n Python An Overview of Python's Modular Programming
  • 2. •How do modules help you write clear and focused code in Python? Python lets you write code in small parts called modules. You can use the ‘import’ statement to combine modules easily. Modules help you write clear and focused code. Python is good for making big and clean software. Python modules make your code easy tounderstand and work with.
  • 3. What are Modules? A Python module is a file containing Python definitions and statements. A module can define functions, classes, and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use. It also makes the code logically organized. The file name is the module name with the suffix .py appended. Examples of common modules (e.g., math, random, datetime)
  • 4. Creating and Using Modules How to create a module TO CREATE A MODULE, YOU JUST NEED TO SAVE YOUR CODE IN A FILE wITH THE .pY EXTENSION. Importingmodulesin Python THEN YOU CAN IMpORT THE MODULE IN ANOTHER FILE AND USE THE FUNCTION:
  • 5. Examples of Modules 6. json: Enables JSON encoding and decoding. 7.requests: Simplifies sending HTTP requests. 8. re: Supports regular expressions for pattern matching. 9.csv: Facilitates reading and writing CSV files. 10.collections: Offers alternatives to built-in types like dictionaries and lists. 1. mat: Provides mathematical functions. 2. os :Offers a way of using operating system- dependent functionality. 3.sys: Provides access to some variables used or maintained by the Python interpreter. 4. datetime: Allows manipulation of dates and times. 5. random: Implements pseudo-random number generators. .
  • 6. What are packages? •A package is a container that contains various functions to perform specific tasks. For example, the math package includes the sqrt() function to perform the square root of a number. •While working on big projects, we have to deal with a large amount of code, and writing everything together in the same file will make our code look messy. Instead, we can separate our code into multiple files by keeping the related code together in packages. •Now, we can use the package whenever we need it in our projects. This way we can also reuse our code.
  • 7. CreatingandUsing Packages •Create a new folder named D:MyApp . •Inside MyApp , create a subfolder with the name 'mypackage'. •Create anfunctions.py file in the mypackage folder. •Usinga Python-aware editor like IDLE, create modules greet.py and functions.py with the following code:
  • 9. Namespaceand Scope • A namespaceisacollectionofnamesthatrefertoobjects • Pythonhasdifferenttypesofnamespaces,suchasbuilt-in, global, local,and enclosing • Thebuilt-innamespacecontainsthenamesofthebuilt-inobjects,suchasint, str, print,etc. • Theglobalnamespacecontainsthenamesoftheobjectsdefinedatthetoplevelof amodule • Thelocalnamespacecontainsthenamesoftheobjectsdefinedinsideafunctionora class • A scopeistheregionofcodewhereanameisvisibleandcanbeaccessed • Pythonhasfourlevelsofscope:local,enclosing,global, andbuilt-in(LEGB) • Thelocalscopeistheinnermostscopeandcontainsthenamesdefinedin thecurrentfunctionorclass • Theenclosingscopeisthescopeoftheenclosingfunctionorclass,ifany • Theglobalscopeisthescopeofthecurrentmodule
  • 10. In conclusion, understanding and harnessing the power of modules and packages in Python is paramount for building scalable, organised, and maintainable code. As we've explored, modules encapsulate code, making it reusable and preventing naming conflicts. Packages take this a step further, providing a structured way to organise modules into a hierarchical directory structure. • Conclusion By adopting modular programming practices, developers can enhance code readability, promote code reuse, and streamline collaboration within projects. As you continue your Python journey, remember the significance of creating well-designed modules and packages, as they form the backbone of robust and efficient software development.
  • 11. Thankyou •1. 23BAI11216 Shresth Kumar Jha 2. 23BAI11286 ISHAAN ROY 3. 23BCG10012 ARUNAVA MUKHERJEE 4. 23BCG10054 DEEP NITIN WATH
  翻译: