Slicing. Negative numbers for start and stop mean "from the end". It's essianlly equivalent of len-value. Negative number for step means "in reverse order". Empty start means 0 i.e. 1st element. Empty stop means len. Stop parameter is exclusive! So [::-1] means from 1st element to last element in steps of 1 in reverse order. If you have [start ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.