This might be a noob question but am not an expert in programming. I am having a hard time grasping the concept. Any help/explanation would be appriciated.
If str1 = 'hello'
and we want to know str1[-1]
.
Shouldn't the answer be - out of bound/error and not 'o'? Why is it 'o'? Can anyone explain me the reason behind it? The book is very unclear about it.