Skip to content

Commit 2b3613a

Browse files
authored
Merge pull request #1118 from unode/visual-index-vs-slice
Add illustration for visual intuition of indexing and slicing
2 parents de5753f + 6e52d0c commit 2b3613a

2 files changed

Lines changed: 1095 additions & 0 deletions

File tree

episodes/04-lists.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ counts + counts
534534

535535
::::::::::::::::::::::::::::::::::::::::::::::::::
536536

537+
## Visual intuition for indexing versus slicing
538+
539+
![Indexing and slicing with steps](fig/python_indexing_slicing.svg){alt="Visual illustration of indexing, slicing and slicing with a step"}
537540

538541

539542
:::::::::::::::::::::::::::::::::::::::: keypoints

0 commit comments

Comments
 (0)