Suppose I was slicing a list and a string:
num_list = [1, 2, 3, 4]
print(num_list[2:]) # => [3, 4]
text_string = 'This is a test string'
print(text_string[5:] # => 'is a text string'
So, when I slice the list, the first slice index is inclusive, but when I slice the string, the slice index is noninclusive. What is it like this? Why does string slicing not follow the same ruleset that list slicing appears too?
My understanding of list slicing is that the left slice index is always inclusive, whilst the right slice index is only inclusive when it is left blank.