Unit 8 · Lesson 2
Build the idea
Start with the concept and its key vocabulary.
Strings are zero-indexed. OCR ERL substring(start, count) takes a starting index and a number of characters. Python string[start:end] takes an exclusive end index instead. ERL left(n) and right(n) map to Python [:n] and [-n:].
The numeric position used to locate an item, starting at zero.
Numbered so the first character or item has index 0.
A consecutive section extracted from a larger string.
Python syntax that extracts values from a start index up to, but not including, an end index.