Concept
Square brackets pick one item by position, counting from zero and from the end with negatives. A slice start:stop:step copies a part of the sequence without changing it.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Indexing and slicing doing its job.
days = ["mon", "tue", "wed", "thu", "fri"]
print(days[0], days[-1]) # mon fri
print(days[1:3]) # ['tue', 'wed']
print(days[:2], days[3:]) # ['mon', 'tue'] ['thu', 'fri']
print(days[::-1]) # reversed copyTreating the stop index as inclusive. days[1:3] gives two items, positions 1 and 2. The stop is the first position left out.
Your roadmap puts these before Indexing and slicing, unless you already know them.
Once a session shows you understand Indexing and slicing, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Indexing and slicing.