Mega Code Archive

 
Categories / Python Tutorial / List
 

Use negative indices to access the list from the end rather than from the beginning

stringList = ["Essential", "Python", "Code"] print stringList[-2]