1 · Python concept
The idea
| list | One value that holds several items in order, written inside square brackets [ ] with commas between the items. |
|---|---|
| index | An item's position number. Python counts from 0, so the first item is [0] and the second is [1]. |
| [-1] | A negative index counts from the end. dialogue[-1] is always the final item, however long the list is. |
| len(...) | Counts the items in a list. A three-line conversation has len(dialogue) equal to 3. |
| Python to the world | The dialogue list runs on your computer. The guide's lines in the Trail are plain text in the YAML conversation field, in the same order. |