Python Lists: Indexing & Slicing

preview_player
Показать описание
In this lesson, you’ll see how to access individual elements and sequences of objects within your lists. Lists elements can be accessed using a numerical index in square brackets. This is the same technique that is used to access individual characters in a string.

Рекомендации по теме
Комментарии
Автор

This was really informative; brief and to the point. Thank you

JoshyHJoshy
Автор

Excelent way of putting things simple! thanks for the effort, instant subscriber here. Keep up the good work!

jfsosa
Автор

Thank you very much! I used it for my self and the things concerning this topic become clear for me after following this video.

BinySD
Автор

This video is super helpful ! Thank you I am 16 learning to code and it’s been really difficult

stevenavalos
Автор

I came here because i didn't understand an unrelated example from codecademy. Thank you for clearing it up!

ganeshprem
Автор

Thank you for this video about lists, it helped me out to solve the problem I was stuck with, which result I uploaded on my own channel. I like your content, your explanation is very clear. I hope my own script can be as clean, if someone could give me some feedback, I would really appreciate it. Thank you!

pythonlucas
Автор

Thanks for using a list of strings, it all became very clear with that!

SMajid--SMajid
Автор

Thanks so much now I fully grasped how the middle number works.

royersegura
Автор

Thank you so much sir, I was having so much difficulty in this portion, and I was unable to identify it .

shalinisrivastava
Автор

such a nice and short video no bs just knowledge

amritanshsinghgautam
Автор

Excellent video, I have a question. I have the following statement but after the colon it doesn't display the data based on the json data.
extras:{
data: data1
data: data2
data: data3
}
for item in data['extras']:
print(item)

bhangra
Автор

Your list has 6 elements, this means the last element's index is 5. However in the last portion of the video you use [0:6], meaning you are slicing out of bounds of the list, since the list does not have an element with index 6. I don't get it.

hydroUNI
Автор

5:54 why wouldn't 6 equal lobster?

katrinawebbheim
Автор

Any hint, what to import in python programming..

zabi_k
Автор

Hello sir I need your help I want to know how to create camera app by python..

zabi_k
Автор

Slicing is so un-intuitive, it should be array[index :index] but someone though it would be a great idea to be index:index after the this is clearly a bug and should be fixed.

NghtRder
Автор

Why dont you request for a verified sign in your channel you have completed 100 k

priyanshuanand
Автор

Doesn't clarify strides whatsoever

milesteg