SlideShare a Scribd company logo
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
• What are Data Structures?
• Why are Data Structures needed?
• Types of Data Structures in Python
• Built-In Data Structures
✓ Lists
✓ Dictionary
✓ Tuple
✓ Sets
• User-Defined Data Structure
✓ Array
✓ Stack
✓ Queue
✓ Linked List
✓ Tree
✓ Graph
www.edureka.co
www.edureka.co/python
www.edureka.co/python
What are Data Structures?
www.edureka.co/python
Open Source
OOPS
Large Standard
Library
Easy to Learn
Data Structures are used to organize, store and
manage data for efficient access and modification
www.edureka.co/python
Why are Data Structures needed?
www.edureka.co/python
• Imagine your workspace set according to your
needs
• Helps you work faster because it is imprinted in
your mind
• Change in workspace leads to increase in time
to access your requirement
• Same goes for data, as it needs to be stored
efficiently which results in better access and
modification
Types of Data Structures in Python
www.edureka.co/python
Types of Data Structures in Python
www.edureka.co/python
Data Structures in
Python
User-Defined Data
Structures
Built-in Data
Structures
List
Dictionary Set
Tuple Stack
Queue LinkedList
Tree
HashMap
Graph
www.edureka.co/python
Built-In Data Structures
www.edureka.co/python
Large Standard
Library
Tuples
Dictionary
Sets
Lists
Built-In Data Structures
www.edureka.co/python
Open Source
Large Standard
Library
Lists
Tuples
Dictionary
Sets
• Lists can have heterogenous
data types in them
• Lists are mutable
Built-In Data Structures
www.edureka.co/python
Open Source
Large Standard
Library
Lists
Tuples
Dictionary
Sets
• Same as lists but not mutable
• Faster than lists
Built-In Data Structures
www.edureka.co/python
Open Source
Large Standard
Library
Lists
Tuples
Dictionary
Sets
• Hold key, value pairs
• Dictionaries are mutable
Built-In Data Structures
www.edureka.co/python
Open Source
Large Standard
Library
Lists
Tuples
Dictionary
Sets
• Un-ordered collection of
unique elements
• Sets are mutable
www.edureka.co/python
User-Defined Data Structures
www.edureka.co/python
Stack
Trees
Queues
HashMaps
Linked List
Graphs
User-Defined Data Structures
www.edureka.co/python
Arrays
12 1 56 13 134
0 1 2 3 4
1.2 1.0 5.6 1.3 13.4
0 1 2 3 4
• Arrays are used to store data of
just one type
• They have index which is used to
access the data accordingly
User-Defined Data Structures
www.edureka.co/python
Stack
1 2 3 • Stacks are made from arrays
• Stacks follow the LIFO principle
• They have a pointer called TOP which is to
track the top of the element
TOP
User-Defined Data Structures
www.edureka.co/python
Push
1
2 3
• This is the push operation where data is added
into the stack
TOP
User-Defined Data Structures
www.edureka.co/python
1
2
3
TOP
• This is the push operation where data is added
into the stack
Push
User-Defined Data Structures
www.edureka.co/python
1
2
3TOP
• This is the push operation where data is added
into the stack
Push
User-Defined Data Structures
www.edureka.co/python
1
2
3
• This is the pop operation where the data is
deleted from the stack
TOP
Pop
Queues
User-Defined Data Structures
www.edureka.co/python
• Queues are made from arrays
• Queues follow the FIFO principle
• Operations can be performed from the front or
back of the queue
1 2 3
HEADTAIL
En-Queue
User-Defined Data Structures
www.edureka.co/python
• En-Queue operation is adding elements into the
queue
1
2 3
HEADTAIL
User-Defined Data Structures
www.edureka.co/python
1
2
3
• En-Queue operation is adding elements into the
queue
HEAD
TAIL
En-Queue
User-Defined Data Structures
www.edureka.co/python
1
2
3
• En-Queue operation is adding elements into the
queue
HEAD
TAIL
En-Queue
User-Defined Data Structures
www.edureka.co/python
• De-Queue operation is to delete elements from
the queue
1
2
3
HEAD
TAIL
De-Queue
Trees
User-Defined Data Structures
www.edureka.co/python
• Trees are helpful to define hierarchy
• The tree starts with the root node and go
further down
• The last nodes are called as the child nodes
Root
1 3
1 2 53
Linked List
User-Defined Data Structures
www.edureka.co/python
• Linked Lists are made up of two fields, the data
and the next field
• The data field holds data and the next field
points to the next node
• The first node is called as the head
Head
Data NEXTData NEXT Data NEXT
End
Graphs
User-Defined Data Structures
www.edureka.co/python
• Graphs closely represent real world
geographical locations
• They have vertices and edges
• Can be used to find shortest path and help in
finding least cost
www.edureka.co/python

More Related Content

What's hot (20)

PDF
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
PPTX
Intro to Python Programming Language
Dipankar Achinta
 
PPTX
SUBQUERIES.pptx
RenugadeviR5
 
PDF
pandas - Python Data Analysis
Andrew Henshaw
 
PDF
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
Edureka!
 
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
PPTX
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
PPTX
Python OOPs
Binay Kumar Ray
 
PDF
What is Python Lambda Function? Python Tutorial | Edureka
Edureka!
 
PDF
Python functions
Prof. Dr. K. Adisesha
 
PPT
7.data types in c#
Zeeshan Ahmad
 
PPTX
Null / Not Null value
Dhirendra Chauhan
 
PDF
Introduction To Python | Edureka
Edureka!
 
PDF
Python Basics
tusharpanda88
 
PPT
L11 array list
teach4uin
 
PDF
Python - object oriented
Learnbay Datascience
 
PPTX
Data Structures in Python
Devashish Kumar
 
PDF
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Edureka!
 
PPTX
Map, Filter and Reduce In Python
Simplilearn
 
PDF
Python Basics | Python Tutorial | Edureka
Edureka!
 
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Edureka!
 
Intro to Python Programming Language
Dipankar Achinta
 
SUBQUERIES.pptx
RenugadeviR5
 
pandas - Python Data Analysis
Andrew Henshaw
 
What is Dictionary In Python? Python Dictionary Tutorial | Edureka
Edureka!
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Python OOPs
Binay Kumar Ray
 
What is Python Lambda Function? Python Tutorial | Edureka
Edureka!
 
Python functions
Prof. Dr. K. Adisesha
 
7.data types in c#
Zeeshan Ahmad
 
Null / Not Null value
Dhirendra Chauhan
 
Introduction To Python | Edureka
Edureka!
 
Python Basics
tusharpanda88
 
L11 array list
teach4uin
 
Python - object oriented
Learnbay Datascience
 
Data Structures in Python
Devashish Kumar
 
Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | ...
Edureka!
 
Map, Filter and Reduce In Python
Simplilearn
 
Python Basics | Python Tutorial | Edureka
Edureka!
 

Similar to What are Data structures in Python? | List, Dictionary, Tuple Explained | Edureka (20)

PPT
data structures queue stack insert and delete time complexity
libannpost
 
PPTX
DATA STRUCTURES Unit III.pptxctxt8xtxt8xtct8xtdtict
dagadsai0330
 
PPTX
Data structures
KarthiKeyan462713
 
PPTX
Introduction to Data Structure in python
PANKAJTHAKUR298452
 
PDF
.DATA STRUCTURES
KarthiKeyan462713
 
PDF
Data structures in python
ChintalaNikhilKumar
 
PPT
Introduction of data structure in short.ppt
mba29007
 
PPTX
Introduction to data structure presentations
jayajadhav7
 
PPT
data structure programing language in c.ppt
LavkushGupta12
 
PPTX
Lecture 2 Data Structure Introduction
Abirami A
 
PPT
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
yarotos643
 
PPT
DATA STRUCTURES A BRIEF OVERVIEW OF DATA
LearnItAllAcademy
 
PPTX
Classification of DS Presentation Harsh.pptx
hp41112004
 
PPT
intr_ds.ppt
PrakharNamdev3
 
PPT
Data Structures and Algorithm for Engineers.ppt
AdharshKumarSingh
 
PPT
02-dataStructurePM and algortima for python.ppt
totowahid1
 
PPT
Basic Data Structure and its concepts details
baisakhiparida92
 
PPT
DATA STRUCTURES IN INFORMATION TECHNOLOGY
DanilynSukkie
 
PPT
DSA theory all topics (summary) presentation
damru0408
 
data structures queue stack insert and delete time complexity
libannpost
 
DATA STRUCTURES Unit III.pptxctxt8xtxt8xtct8xtdtict
dagadsai0330
 
Data structures
KarthiKeyan462713
 
Introduction to Data Structure in python
PANKAJTHAKUR298452
 
.DATA STRUCTURES
KarthiKeyan462713
 
Data structures in python
ChintalaNikhilKumar
 
Introduction of data structure in short.ppt
mba29007
 
Introduction to data structure presentations
jayajadhav7
 
data structure programing language in c.ppt
LavkushGupta12
 
Lecture 2 Data Structure Introduction
Abirami A
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
yarotos643
 
DATA STRUCTURES A BRIEF OVERVIEW OF DATA
LearnItAllAcademy
 
Classification of DS Presentation Harsh.pptx
hp41112004
 
intr_ds.ppt
PrakharNamdev3
 
Data Structures and Algorithm for Engineers.ppt
AdharshKumarSingh
 
02-dataStructurePM and algortima for python.ppt
totowahid1
 
Basic Data Structure and its concepts details
baisakhiparida92
 
DATA STRUCTURES IN INFORMATION TECHNOLOGY
DanilynSukkie
 
DSA theory all topics (summary) presentation
damru0408
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 

What are Data structures in Python? | List, Dictionary, Tuple Explained | Edureka