SlideShare a Scribd company logo
AI Club
AI Club
Python with AI –
Introduction to Lists
Lists in Python
• A list holds ordered collection of items.
• This is represented by comma separated values
• Print items in a list
Lists in Python
• A list holds ordered collection of items.
• This is represented by comma separated values
• An item can be a string or a number or anything else 
Lists in Python
• An item can be a string or a number or anything else 
• Think about how you would specify a shopping list if there was no
concept of lists in python?
Lists in Python
• An item can be a string or a number or anything else 
• Think about how you would specify a shopping list if there was no
concept of lists in python?
• You might have to specify one variable for each item and then use
something else to tie all these variables together
Concept of index in a List
• An item can be a string or a number or anything else 
• Each item in the list has a index
• Index in python starts with 0
0 3
2
1 4
Index =
Concept of index in a List
• An item can be a string or a number or anything else 
• Each item in the list has a index
• Index in python starts with 0
• How is this index useful?
0 3
2
1 4
Index =
Concept of index in a List
• An item can be a string or a number or anything else 
• How is this index useful?
• Index tells you the position of the item. Example – 0th item in the list
shoplist is ‘apple’, 1st items is 50 etc
0 3
2
1 4
Index =
Lists inside lists
• An item inside a list can be another list
Access an item in a list
• An item inside a list can be another list
• How can you access the item mouse?
Exercise
• An item inside a list can be another list
• How can you access and print the item mouse
• Use the index to access the item
Exercise
• An item inside a list can be another list
• How can you access and print the item mouse
• How can you access and print the item [‘a’] ?
Exercise
• An item inside a list can be another list
• How can you access and print the item mouse
• How can you access and print the item [‘a’] ?
• How can you access and print a?
Exercise
• An item inside a list can be another list
• How can you access and print the item mouse
• How can you access and print the item [‘a’] ?
• How can you access and print a?
THANK YOU
https://aiclub.world
info@pyxeda.ai

More Related Content

PPTX
Amarração e Movimentação de cargas.pptx
PDF
British standards quick reference guide 2007
PDF
Improving Results for Children from Cradle to Career by Promise Neighborhoods...
PDF
An Investigation Into the Root Cause of a Spill From Procuring and Handling o...
PPTX
Refresh K3 Bagi Karyawan perusahaan manufaktur
PPTX
LIST_tuple.pptx
PPTX
Brixon Library Technology Initiative
PPTX
List in Python
Amarração e Movimentação de cargas.pptx
British standards quick reference guide 2007
Improving Results for Children from Cradle to Career by Promise Neighborhoods...
An Investigation Into the Root Cause of a Spill From Procuring and Handling o...
Refresh K3 Bagi Karyawan perusahaan manufaktur
LIST_tuple.pptx
Brixon Library Technology Initiative
List in Python

Similar to Introduction to lists (20)

PPTX
PA1 lists
PPTX
Datastrucure
PDF
Python - Lecture 3
PPTX
Lists Data Structures and Algorithm.pptx
PPTX
Python Lists.pptx
PPTX
Python Lists is a a evry jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
PPTX
Pa1 session 3_slides
PPTX
This material is Phython programming Course.
PPTX
Data Type In Python.pptx
PPTX
Python Programming for basic beginners.pptx
PPTX
PYTHON.pptx
PPTX
Lists on the pyhton to learn the children more easily on easy codes.pptx
PPTX
powerpoint 2-13.pptx
PDF
Anton Kasyanov, Introduction to Python, Lecture4
PPTX
Python- Basic. pptx with lists, tuples dictionaries and data types
PPTX
Python- Basic.pptx with data types, lists, and tuples with dictionary
PPTX
PPTX
Lists and loops
PDF
"Automata Basics and Python Applications"
PPTX
Lecture2.pptx
PA1 lists
Datastrucure
Python - Lecture 3
Lists Data Structures and Algorithm.pptx
Python Lists.pptx
Python Lists is a a evry jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
Pa1 session 3_slides
This material is Phython programming Course.
Data Type In Python.pptx
Python Programming for basic beginners.pptx
PYTHON.pptx
Lists on the pyhton to learn the children more easily on easy codes.pptx
powerpoint 2-13.pptx
Anton Kasyanov, Introduction to Python, Lecture4
Python- Basic. pptx with lists, tuples dictionaries and data types
Python- Basic.pptx with data types, lists, and tuples with dictionary
Lists and loops
"Automata Basics and Python Applications"
Lecture2.pptx
Ad

More from aiclub_slides (20)

PPTX
Linear regression middleschool
PPTX
Pa2 project template
PPTX
Knn intro advanced_middleschool
PPTX
M1 regression metrics_middleschool
PPTX
Pa1 json requests
PPTX
Mnist images
PPTX
Mnist images
PPTX
Ai in real life face detection
PPTX
PPTX
Res net high level intro
PPTX
Neural networks and flattened images
PPTX
What is a_neural_network
PPTX
How neural networks learn part iii
PPTX
Introduction to deep learning image classification
PPTX
Accuracy middleschool
PPTX
Introduction to classification_middleschool
PPTX
Introduction to the cloud
PPTX
Basics of data
PPTX
Ai basics
PPTX
Ai lifecycle and navigator
Linear regression middleschool
Pa2 project template
Knn intro advanced_middleschool
M1 regression metrics_middleschool
Pa1 json requests
Mnist images
Mnist images
Ai in real life face detection
Res net high level intro
Neural networks and flattened images
What is a_neural_network
How neural networks learn part iii
Introduction to deep learning image classification
Accuracy middleschool
Introduction to classification_middleschool
Introduction to the cloud
Basics of data
Ai basics
Ai lifecycle and navigator
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PPTX
Presentation on HIE in infants and its manifestations
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Institutional Correction lecture only . . .
PPTX
Cell Structure & Organelles in detailed.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
Presentation on HIE in infants and its manifestations
Abdominal Access Techniques with Prof. Dr. R K Mishra
O5-L3 Freight Transport Ops (International) V1.pdf
Pharma ospi slides which help in ospi learning
102 student loan defaulters named and shamed – Is someone you know on the list?
Institutional Correction lecture only . . .
Cell Structure & Organelles in detailed.
Final Presentation General Medicine 03-08-2024.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
FourierSeries-QuestionsWithAnswers(Part-A).pdf
human mycosis Human fungal infections are called human mycosis..pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

Introduction to lists

  • 2. AI Club Python with AI – Introduction to Lists
  • 3. Lists in Python • A list holds ordered collection of items. • This is represented by comma separated values • Print items in a list
  • 4. Lists in Python • A list holds ordered collection of items. • This is represented by comma separated values • An item can be a string or a number or anything else 
  • 5. Lists in Python • An item can be a string or a number or anything else  • Think about how you would specify a shopping list if there was no concept of lists in python?
  • 6. Lists in Python • An item can be a string or a number or anything else  • Think about how you would specify a shopping list if there was no concept of lists in python? • You might have to specify one variable for each item and then use something else to tie all these variables together
  • 7. Concept of index in a List • An item can be a string or a number or anything else  • Each item in the list has a index • Index in python starts with 0 0 3 2 1 4 Index =
  • 8. Concept of index in a List • An item can be a string or a number or anything else  • Each item in the list has a index • Index in python starts with 0 • How is this index useful? 0 3 2 1 4 Index =
  • 9. Concept of index in a List • An item can be a string or a number or anything else  • How is this index useful? • Index tells you the position of the item. Example – 0th item in the list shoplist is ‘apple’, 1st items is 50 etc 0 3 2 1 4 Index =
  • 10. Lists inside lists • An item inside a list can be another list
  • 11. Access an item in a list • An item inside a list can be another list • How can you access the item mouse?
  • 12. Exercise • An item inside a list can be another list • How can you access and print the item mouse • Use the index to access the item
  • 13. Exercise • An item inside a list can be another list • How can you access and print the item mouse • How can you access and print the item [‘a’] ?
  • 14. Exercise • An item inside a list can be another list • How can you access and print the item mouse • How can you access and print the item [‘a’] ? • How can you access and print a?
  • 15. Exercise • An item inside a list can be another list • How can you access and print the item mouse • How can you access and print the item [‘a’] ? • How can you access and print a?