In Python The backward index in list starts from with index no.
1)0
2)-1
3)length -1
4) -length
5) None of the above
6) Others _______
Answers
Answered by
0
Answer:
2) -1
Explanation:
Indexing is the process of assigning index numbers to the elements of array.
It can be done in two ways:
- Forward indexing begins with 0 and ends at n-1 where n is the length on the array.
As for example,
"abcd"
a is at index 0 and d is at index (4-1)=3
- Backward indexing begins with -1 and ends at -n.
d in the string above is at index -1 and a is at -4.
Similar questions