What is the output for −'python ' [-3]
o
t
h
Negative Index Error
Answers
Answered by
3
Answer:
Python programming language supports negative indexing of arrays, something which is not available in arrays in most other programming languages. This means that the index value of -1 gives the last element, and -2 gives the second last element of an array. The negative indexing starts from where the array ends.
Similar questions