Login
Remember
Register
Ask a Question
What is negative index in Python?
0
votes
asked
Jan 1, 2021
in
Python
by
SakshiSharma
What is negative index in Python?
#python-negative-index
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 1, 2021
by
SakshiSharma
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.
...