[:-1] and [::-1]

[:-1] means loop through the collection from starting to the index -1. Another name is *slice operator.*

[::-1] means loop through the collection from staring to ending with the step size as -1 OR iterate through a collection in the reverse order.

[start_index:end_index:step_size]