4
Most read
8
Most read
14
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

PDF
Python Basics | Python Tutorial | Edureka
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
PPTX
Introduction to python
PDF
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
PPTX
Beginning Python Programming
PPTX
Python
PPT
Python ppt
PPT
Introduction to Python
Python Basics | Python Tutorial | Edureka
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Introduction to python
Python Functions Tutorial | Working With Functions In Python | Python Trainin...
Beginning Python Programming
Python
Python ppt
Introduction to Python

What's hot (20)

PPTX
Introduction to the basics of Python programming (part 1)
PDF
Python Programming Language | Python Classes | Python Tutorial | Python Train...
PDF
Python Basics
PPTX
Python programming
PDF
Python Class | Python Programming | Python Tutorial | Edureka
PDF
Python Programming Tutorial | Edureka
PPTX
Python basics
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
PDF
Python Generators
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
PPTX
Modules in Python Programming
PDF
Python programming : Strings
PPTX
Introduction to python
PDF
Python libraries
PPTX
Basic data structures in python
PPTX
Data Structures in Python
PPTX
Basics of Object Oriented Programming in Python
PDF
Python-01| Fundamentals
PPT
Python List.ppt
Introduction to the basics of Python programming (part 1)
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Python Basics
Python programming
Python Class | Python Programming | Python Tutorial | Edureka
Python Programming Tutorial | Edureka
Python basics
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Python Generators
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Modules in Python Programming
Python programming : Strings
Introduction to python
Python libraries
Basic data structures in python
Data Structures in Python
Basics of Object Oriented Programming in Python
Python-01| Fundamentals
Python List.ppt
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...
PPTX
Basic of Python- Hands on Session
PDF
software construction and development.pdf
PPTX
PYTHON ppt for 2 nd year students very useful
PPTX
Python-Intorduction to coding Technology.pptx
PDF
PROGRAMMING _ Intro-Walk into Python.pdf
PDF
Introduction To Python | Edureka
PDF
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
PDF
Python Programming
PDF
Python Interview Questions And Answers 2019 | Edureka
PDF
Theperlreview
PDF
Python Programming Course Presentations
PDF
What is Tuple in python? | Python Tuple Tutorial | Edureka
PPTX
14-Python-Concepts for data science.pptx
PPTX
trisha comp ppt.pptx
PDF
Variables & Data Types In Python | Edureka
PPTX
1664611760basics-of-python-for begainer1 (3).pptx
PDF
Python Interview Questions PDF By ScholarHat.pdf
PDF
perl course-in-mumbai
PDF
perl course-in-mumbai
Python Programming | Python Programming For Beginners | Python Tutorial | Edu...
Basic of Python- Hands on Session
software construction and development.pdf
PYTHON ppt for 2 nd year students very useful
Python-Intorduction to coding Technology.pptx
PROGRAMMING _ Intro-Walk into Python.pdf
Introduction To Python | Edureka
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...
Python Programming
Python Interview Questions And Answers 2019 | Edureka
Theperlreview
Python Programming Course Presentations
What is Tuple in python? | Python Tuple Tutorial | Edureka
14-Python-Concepts for data science.pptx
trisha comp ppt.pptx
Variables & Data Types In Python | Edureka
1664611760basics-of-python-for begainer1 (3).pptx
Python Interview Questions PDF By ScholarHat.pdf
perl course-in-mumbai
perl course-in-mumbai
Ad

More from Edureka! (20)

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

Recently uploaded (20)

PDF
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
PPTX
How to use fields_get method in Odoo 18
PDF
Domain-specific knowledge and context in large language models: challenges, c...
PDF
NewMind AI Journal Monthly Chronicles - August 2025
PDF
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
PPTX
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
PDF
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
PDF
Optimizing bioinformatics applications: a novel approach with human protein d...
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
substrate PowerPoint Presentation basic one
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
Technical Debt in the AI Coding Era - By Antonio Bianco
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
Decision Optimization - From Theory to Practice
PDF
Examining Bias in AI Generated News Content.pdf
PDF
CEH Module 2 Footprinting CEH V13, concepts
PDF
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
PDF
Altius execution marketplace concept.pdf
PDF
The AI Revolution in Customer Service - 2025
PPTX
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
How to use fields_get method in Odoo 18
Domain-specific knowledge and context in large language models: challenges, c...
NewMind AI Journal Monthly Chronicles - August 2025
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
Optimizing bioinformatics applications: a novel approach with human protein d...
EIS-Webinar-Regulated-Industries-2025-08.pdf
substrate PowerPoint Presentation basic one
Build automations faster and more reliably with UiPath ScreenPlay
Technical Debt in the AI Coding Era - By Antonio Bianco
Report in SIP_Distance_Learning_Technology_Impact.pptx
Decision Optimization - From Theory to Practice
Examining Bias in AI Generated News Content.pdf
CEH Module 2 Footprinting CEH V13, concepts
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
Altius execution marketplace concept.pdf
The AI Revolution in Customer Service - 2025
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]

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