blog
How to Get the First X or Last X Items in a Python List
We can use the colon (:) to get the first n (number) of items in a list, the last n items, and some combo of those in between. This is called "slicing" in python. Say we have a list of four items: >>> my_list = ['a&