wrap list python

ls[index % len(ls)]

Here is what the above code is Doing:
1. We create a list of colors.
2. We create a function that takes in an index and returns the color at that index.
3. We create a function that takes in an index and returns the color at that index,
but if the index is greater than the length of the list, it will return the color
at the index modulo the length of the list.