The basic notation is: [start:stop:step] The default for start is none or 0 . The default stop is the end of your data structure. Using a positive number references from the first element, a negative number references from last element in your structure.