Skip to Content

The [-n:] slice operator captures all characters or elements from a list by starting n characters from the end of the string and the capturing all characters or elements to the end.