Timeline for answer to Why does Python start at index -1 (as opposed to 0) when indexing a list from the end? by rdas
Current License: CC BY-SA 4.0
Post Revisions
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 16, 2019 at 15:10 | audit | First posts | |||
| Apr 16, 2019 at 15:10 | |||||
| Apr 15, 2019 at 16:56 | comment | added | plugwash | Be aware that list[-n] and list[len(list)-n] are only equivilent for values of n between 1 and len(list). This becomes especially important when slicing rather than indexing. | |
| Apr 15, 2019 at 12:17 | comment | added | user10658544 | In my opinion this answer is better than the accepted one. | |
| Apr 15, 2019 at 8:14 | history | answered | rdas | CC BY-SA 4.0 |