Mega Code Archive

 
Categories / Python Tutorial / List
 

Negative List Indices

li = ["a", "b", "c", "z", "example"]       print li  print li[-1]                                     print li[-3]