How do list indices work in Python ?

Question :

How do list indices work in Python ?

List indices work in the same way as string indices:
(a) Any integer expression can be used as an index.
(b) If we try read or write an element that does not exist, we get an IndexError.
(c) If an index has a negative value, it counts backward i.e., from the end of the list. 


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad