use negative indices to access the list from the end rather than from the beginning. : Index : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Index »

 

use negative indices to access the list from the end rather than from the beginning.


stringList = ["Essential""Python""Code"]


print stringList[-2]



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Index