Why does reversing a list using slice notation with 0 as “stop” not return the entire list?

Slice notation in short:

[ <first element to include> : <first element to exclude> : <step> ]

If you want to include the first element when reversing a list, leave the middle element empty, like this:


You can also find some good information about Python slices in general here:
Explain Python’s slice notation

Leave a Comment