In this series, we will go over my notes for Python. And in this video, we are going to see how indexing, slicing, nesting and multiple assignment work.
Links:
GitHub Repo: https://github.com/SebastianMantey/Py...
Full Playlist: • Python Tutorial for Beginners
Mutability: • Python Tutorial for Beginners p.15: Mutabi...
Zero-based indexing: • Python Tutorial for Beginners p.14: Zero-b...
Timestamps:
0:00 - Intro
0:18 - Purpose of indexing
0:35 - Indexing with positive indices
2:15 - Indexing with negative indices
3:14 - Indexing unordered collections
4:10 - Indexing and assignment
5:39 - Purpose of slicing
5:54 - Slicing with basic notation
8:02 - Slicing with step notation
9:23 - Overflowing indices
10:17 - Empty slices
11:39 - Slicing unordered collections
12:29 - Why the "end" is not included
12:39 - Creating a copy with a slice
13:37 - Slicing and assignment
16:13 - Definition of Nesting
16:59 - Use cases for nesting
19:02 - Indexing a nested list
19:40 - Slicing a nested list
20:39 - Purpose of multiple assignment
21:49 - Potential errors with multiple assignment