What do you mean by positive and negative indices ?
Question :
What do you mean by positive and negative indices ?
In Python, indices that begin from 0 onwards indices, and the indices which begin from -1,-2,-3 in the backward direction are called negative indices. Positive subscript helps in accessing the strings from the beginning. Negative subscript helps in accessing the string from the end.