+1 vote
in Python by
What are the positive and negative indices?

1 Answer

0 votes
by
In the positive indices are applied the search beings from left to the right. In the case of the negative indices, the search begins from right to left. For example, in the array list of size n the positive index, the first index is 0, then comes 1 and until the last index is n-1. However, in the negative index, the first index is -n, then -(n-1) until the last index will be -1.

Related questions

0 votes
asked Jan 1, 2021 in Python by SakshiSharma
+1 vote
asked Dec 31, 2021 in Unstructured Data Classification by rajeshsharma
...