1.

What Is A “negative Index”?

Answer»

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.

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.



Discussion

No Comment Found