What is negative or positive index in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

What is negative or positive index in Python?

2nd Feb 2020, 3:53 AM
SHADOW 🌀
SHADOW 🌀 - avatar
5 Answers
+ 12
So you are saying that (-1) is the last index and (-2) is the second last index and so forth.
2nd Feb 2020, 3:57 AM
SHADOW 🌀
SHADOW 🌀 - avatar
+ 7
Negative index traverses the list from end.
2nd Feb 2020, 3:54 AM
Manoj
Manoj - avatar
+ 3
Yup
2nd Feb 2020, 3:57 AM
Manoj
Manoj - avatar
+ 1
Thanks
2nd Feb 2020, 3:59 AM
SHADOW 🌀
SHADOW 🌀 - avatar
0
I am learning in python language, I need good instructor any one can help me?
15th Feb 2020, 12:56 PM
Md.Al-Amin Mondol
Md.Al-Amin Mondol - avatar