SlideShare a Scribd company logo
14
Most read
18
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

What's hot (20)

PDF
Variables & Data Types In Python | Edureka
Edureka!
 
PDF
What is Python? | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PPTX
Python ppt
Anush verma
 
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
PPTX
Python Interview Questions | Python Interview Questions And Answers | Python ...
Simplilearn
 
PPTX
Beginning Python Programming
St. Petersburg College
 
PPTX
Functions in Python
Kamal Acharya
 
PPT
Python ppt
Mohita Pandey
 
PPTX
Basic Python Programming: Part 01 and Part 02
Fariz Darari
 
PDF
Python functions
Prof. Dr. K. Adisesha
 
PPTX
Introduction to Basics of Python
Elewayte
 
PPTX
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
 
PDF
Python If Else | If Else Statement In Python | Edureka
Edureka!
 
PPSX
Modules and packages in python
TMARAGATHAM
 
PPT
Introduction to Python
amiable_indian
 
PPTX
Introduction to python
Ayshwarya Baburam
 
PPTX
For Loops and Nesting in Python
primeteacher32
 
PPTX
Fundamentals of Python Programming
Kamal Acharya
 
Variables & Data Types In Python | Edureka
Edureka!
 
What is Python? | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Python ppt
Anush verma
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Python Interview Questions | Python Interview Questions And Answers | Python ...
Simplilearn
 
Beginning Python Programming
St. Petersburg College
 
Functions in Python
Kamal Acharya
 
Python ppt
Mohita Pandey
 
Basic Python Programming: Part 01 and Part 02
Fariz Darari
 
Python functions
Prof. Dr. K. Adisesha
 
Introduction to Basics of Python
Elewayte
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
 
Python If Else | If Else Statement In Python | Edureka
Edureka!
 
Modules and packages in python
TMARAGATHAM
 
Introduction to Python
amiable_indian
 
Introduction to python
Ayshwarya Baburam
 
For Loops and Nesting in Python
primeteacher32
 
Fundamentals of Python Programming
Kamal Acharya
 

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!
 
Ad

Recently uploaded (20)

PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 

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