When I was writing code, I noticed a feature was not working as it should. I figured out that the problem came from this strange behavior:
>>> [][:10]
[]
I was expecting this code to throw an error. Why doesn't it? What practical applications does this behavior have?