What is the use of negative indexes?



What is the use of negative indexes?..

Answer / Pawan Sharma

Negative indexes are useful when you want to access elements from the end of a list or string without having to calculate the total length and subtract.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Python ­ How do you make a higher order function in Python?

1 Answers  


Describe about the libraries of python?

1 Answers  


What is super () react?

1 Answers  


We know python is all the rage these days. But to be truly accepting of a great technology, you must know its pitfalls as well. Would you like to talk about this?

1 Answers  


What is the use of ‘self’ keyword in python?

1 Answers  


What is the Global Interpreter Lock (GIL) in Python?

1 Answers  


What are objects in python?

1 Answers  


Is there a tool to help find bugs or perform static analysis?

1 Answers  


Why is self used in python?

1 Answers  


Why lambda forms in python does not have statements?

1 Answers  


How to sort a dictionary by value in python?

1 Answers  


How do you sort in python?

1 Answers  


Categories