0 votes
in Python by
What is negative index in Python?

1 Answer

0 votes
by
Python sequences can be index in positive and negative numbers. For positive index, 0 is the first index, 1 is the second index and so forth. For negative index, (-1) is the last index and (-2) is the second last index and so forth.

Related questions

0 votes
asked Feb 11, 2021 in Python by SakshiSharma
0 votes
asked Dec 14, 2019 in Python by sharadyadav1986
...