I'm using recursion to iterate through the values of a string. When I get past the last character, it's allowing me to use that index position as an empty string ""
instead of giving an error. Why is that?
myStr = 'test'
print(myStr[4])
produces an error
print(myStr[4:])
does not produce any error.