Here is a sample piece of code I wrote using string indexing, but I'm having trouble with these two outcomes. I highlighted what I thought would be the answer to the first one but I don't understand at all the second output. I assumed the string indexing was similar to range() function, but it seems slightly different. Here is my sample code:
word = "Hello There"
print(word[5:3:-1])
# olle
print(word[::-1])