This is not an error, but perhaps a clarification of instructions that could be included.
In part 3 Working with Strings, in the exercise called Second and Second to Last Characters, the question does not mention that the string inputs are at least two characters long, nor does it mention what to do if the string inputs were only one character long or an empty string (resulting in an index out of bounds error if [-2] is used as an index to get the second last characters.
This page raises the possiblity of an index out of bounds error before the exercise is attempted, so this possibility could be included in the exercise.
Alternatively, instructions could be provided that the input string is at least two characters to avoid hesitation.
This is not an error, but perhaps a clarification of instructions that could be included.
In part 3 Working with Strings, in the exercise called Second and Second to Last Characters, the question does not mention that the string inputs are at least two characters long, nor does it mention what to do if the string inputs were only one character long or an empty string (resulting in an index out of bounds error if [-2] is used as an index to get the second last characters.
This page raises the possiblity of an index out of bounds error before the exercise is attempted, so this possibility could be included in the exercise.
Alternatively, instructions could be provided that the input string is at least two characters to avoid hesitation.