'String indices must be an integer'. Comment.
Question :
'String indices must be an integer'. Comment.
We can se any expression, including variables and operators, as an integer. Otherwise, we might get an error. We can also use negative indices, which count backward, i.e., from the end of the string to the beginning.