Explain about negative indexing?



Explain about negative indexing?..

Answer / Reetu Rana

Negative indexing in Python allows access to elements from the end of a list, tuple, or string. For example: `list[0]` gives the first element, while `list[-1]` gives the last.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What are the packages?

1 Answers  


How will you change case for all letters in string in python?

1 Answers  


Write code to print everything in the string except the spaces.

1 Answers  


list some of the data science libraries in python

0 Answers  


Does return print in python?

1 Answers  


Is google made with python?

1 Answers  


What is the difference between a list and a tuple?

1 Answers  


Is python a shell?

1 Answers  


What is the lambda?

1 Answers  


What does the ‘#’ symbol do in Python?

3 Answers  


Explain python’s pass by references vs pass by value.

1 Answers  


What is the tool used to check python code standards?

1 Answers  


Categories