SlideShare a Scribd company logo
14
Most read
20
Most read
22
Most read
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Python Sequences
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
➢ What are sequences?
➢ Sequence Operations
➢ Types of Sequences in Python
➢ Lists
➢ Tuples
➢ Strings
➢ Sets
➢ Dictionaries
Agenda
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
What are Sequences?
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
What Are Sequences?
➢ Sequences are containers with items that are accessible by indexing or slicing.
➢ The built-in len function takes any container as an argument and returns the number of items in the container.
Sequence of Cars
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequences Operations
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequence Operations
Sequences of Cars
Concatenation Repetition Membership Testing Slicing Indexing
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequence Concatenation and Repetition
Sequence of Cars
Concatenation Repetition
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequence Membership Testing
Sequence of Cars
Membership Testing
Not a member Is a member
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequence Indexing
Sequence of Cars
Indexing
Index 0 Index 1 Index 2 Index 3 Index 4 Index 5 Index 6 Index 7
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequence Slicing
Sequence of Cars
Slicing
[ index 1 – index 4 ]
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Types of Sequences in Python
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sequences In Python
Lists
Tuples
Strings
Sets
Dictionaries
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Lists
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Lists
Fruits = ['Mango', 'Apple', 'Grapes'] List.append(elem)
List.insert(index,elem)
List.extend(list2)
List.index(elem)
List.remove(elem)
List.sort()
List.reverse()
Append
Extend
Insert
Index
Remove
Sort
Reverse
The list is a most versatile datatype available in Python which can be written as a list of comma-separated
values (items) between square brackets. Important thing about a list is that items in a list need not be of
the same type.
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Tuples
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Tuples
➢ A tuple is a sequence of immutable Python objects.
➢ Tuples are sequences, just like lists. The differences between tuples and lists are, the
tuples cannot be changed unlike lists and tuples use parentheses.
Fruits = ('Mango', 'Apple', 'Grapes‘)
Tuple.index(elem)Index
Tuple.count(elem)Count
Tuple1+Tuple2Concatenation
Tuple[range]Slicing
Tuple * xRepetition
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Strings
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Strings
➢ We can create them simply by enclosing characters in quotes.
➢ Python treats single quotes the same as double quotes.
Fruits = 'Mango Apple Grapes'
String[range]
Updating
Slicing
Concatenation
Reverse
Repetition
Membership
String[range] + ‘x’
String 1 + String 2
String 1 * x
In, not in
String [:-1]
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sets
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Sets
➢ A set contains an unordered collection of unique and immutable objects.
➢ The set data type is, as the name implies, a Python implementation of the
sets as they are known from mathematics.
A BA B
A B
C
(A C) / B (B C) / A
C
Fruits = {'Mango', 'Apple', 'Grapes‘}
Slicing
Add Element
Clear
Copy
Difference
Discard
Remove
Intersection
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Dictionaries
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Dictionaries
➢ Dictionary is an unordered collection of key-value pairs.
➢ It is generally used when we have a huge amount of data.
Example:
Length
del d [K]
Membership Testing
Key
Value
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Session In A Minute
What are Sequences? Lists
Strings Sets
Tuples
Dictionaries
www.edureka.co/pythonEDUREKA PYTHON CERTIFICATION TRAINING
Thank You …
Questions/Queries/Feedback

More Related Content

PPT
Python Pandas
Sunil OS
 
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
PDF
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Edureka!
 
PDF
What is Python JSON | Edureka
Edureka!
 
PPTX
Python Data Structures and Algorithms.pptx
ShreyasLawand
 
PPTX
Beginning Python Programming
St. Petersburg College
 
Python Pandas
Sunil OS
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Edureka!
 
What is Python JSON | Edureka
Edureka!
 
Python Data Structures and Algorithms.pptx
ShreyasLawand
 
Beginning Python Programming
St. Petersburg College
 

What's hot (20)

PPTX
Basics of Object Oriented Programming in Python
Sujith Kumar
 
PDF
Python Basics | Python Tutorial | Edureka
Edureka!
 
PDF
Variables & Data Types In Python | Edureka
Edureka!
 
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
PPT
Python ppt
Mohita Pandey
 
PPTX
Class, object and inheritance in python
Santosh Verma
 
PPTX
Data Structures in Python
Devashish Kumar
 
PDF
Python Class | Python Programming | Python Tutorial | Edureka
Edureka!
 
PDF
Data types in python
Learnbay Datascience
 
PDF
What is Python? | Edureka
Edureka!
 
PPTX
Looping Statements and Control Statements in Python
PriyankaC44
 
PPTX
Python Functions
Mohammed Sikander
 
PPTX
Functions in python
colorsof
 
PPTX
Intro to Python Programming Language
Dipankar Achinta
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Python-03| Data types
Mohd Sajjad
 
PPT
Introduction to Python
amiable_indian
 
PDF
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
Edureka!
 
PDF
Introduction to python programming
Srinivas Narasegouda
 
PPTX
Python OOPs
Binay Kumar Ray
 
Basics of Object Oriented Programming in Python
Sujith Kumar
 
Python Basics | Python Tutorial | Edureka
Edureka!
 
Variables & Data Types In Python | Edureka
Edureka!
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
Python ppt
Mohita Pandey
 
Class, object and inheritance in python
Santosh Verma
 
Data Structures in Python
Devashish Kumar
 
Python Class | Python Programming | Python Tutorial | Edureka
Edureka!
 
Data types in python
Learnbay Datascience
 
What is Python? | Edureka
Edureka!
 
Looping Statements and Control Statements in Python
PriyankaC44
 
Python Functions
Mohammed Sikander
 
Functions in python
colorsof
 
Intro to Python Programming Language
Dipankar Achinta
 
Python Programming Tutorial | Edureka
Edureka!
 
Python-03| Data types
Mohd Sajjad
 
Introduction to Python
amiable_indian
 
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
Edureka!
 
Introduction to python programming
Srinivas Narasegouda
 
Python OOPs
Binay Kumar Ray
 
Ad

Similar to Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | Python Training | Edureka (20)

PDF
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Edureka!
 
ODP
Python course Day 1
Karin Lagesen
 
PPT
Data types usually used in python for coding
PriyankaRajaboina
 
PPT
02python.ppt
rehanafarheenece
 
PPT
02python.ppt
ssuser492e7f
 
PDF
Python Basics it will teach you about data types
NimitSinghal2
 
PPTX
Tuple in python
vikram mahendra
 
PPTX
Sequence Types in Python Programming
Bobby Murugesan
 
PPTX
PRESENTATION ON TUPLES.pptx
rohan899711
 
PDF
Tuple in Python class documnet pritened.
SravaniSravani53
 
PDF
Python Is Very most Important for Your Life Time.
SravaniSravani53
 
PDF
Processing data with Python, using standard library modules you (probably) ne...
gjcross
 
PPTX
Intro Python Data Structures.pptx Intro Python Data Structures.pptx
judyhilly13
 
PPTX
Python programming UNIT III-Part-2.0.pptx
Ponnusamy S Pichaimuthu
 
PPTX
‏‏chap6 list tuples.pptx
RamiHarrathi1
 
PDF
Notes8
Amba Research
 
PPT
Getting started in Python presentation by Laban K
GDSCKYAMBOGO
 
PPTX
Python Datatypes by SujithKumar
Sujith Kumar
 
PPTX
UNIT-3 python and data structure alo.pptx
harikahhy
 
PDF
Python revision tour II
Mr. Vikram Singh Slathia
 
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Edureka!
 
Python course Day 1
Karin Lagesen
 
Data types usually used in python for coding
PriyankaRajaboina
 
02python.ppt
rehanafarheenece
 
02python.ppt
ssuser492e7f
 
Python Basics it will teach you about data types
NimitSinghal2
 
Tuple in python
vikram mahendra
 
Sequence Types in Python Programming
Bobby Murugesan
 
PRESENTATION ON TUPLES.pptx
rohan899711
 
Tuple in Python class documnet pritened.
SravaniSravani53
 
Python Is Very most Important for Your Life Time.
SravaniSravani53
 
Processing data with Python, using standard library modules you (probably) ne...
gjcross
 
Intro Python Data Structures.pptx Intro Python Data Structures.pptx
judyhilly13
 
Python programming UNIT III-Part-2.0.pptx
Ponnusamy S Pichaimuthu
 
‏‏chap6 list tuples.pptx
RamiHarrathi1
 
Getting started in Python presentation by Laban K
GDSCKYAMBOGO
 
Python Datatypes by SujithKumar
Sujith Kumar
 
UNIT-3 python and data structure alo.pptx
harikahhy
 
Python revision tour II
Mr. Vikram Singh Slathia
 
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
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!
 
PDF
ITIL® Tutorial for Beginners | ITIL® Foundation Training | 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!
 
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!
 
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
Edureka!
 

Recently uploaded (20)

PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
GYTPOL If You Give a Hacker a Host
linda296484
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
PDF
Software Development Company | KodekX
KodekX
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
GYTPOL If You Give a Hacker a Host
linda296484
 
Doc9.....................................
SofiaCollazos
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
This slide provides an overview Technology
mineshkharadi333
 
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
Software Development Company | KodekX
KodekX
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 

Python Sequence | Python Lists | Python Sets & Dictionary | Python Strings | Python Training | Edureka