0 votes
in Python by
What Is A “negative Index” in Python?

1 Answer

0 votes
by

Python sequences can be indexed as positive and negative numbers. For ac positive index, 0 is the first number, 1 is the second etc.  For a negative index, (-1) is the last index and (-2) is the second etc.

Related questions

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