Why doesn\'t \'example\'[999:9999] result in error? Since \'example\'[9] does, what is the motivation behind it?
\'example\'[999:9999]
\'example\'[9]
From this behavior I can a
Slicing is not bounds-checked by the built-in types. And although both of your examples appear to have the same result, they work differently; try them with a list instead.