Negative Indices : Slice : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Slice »

 

Negative Indices


monthList = ["January""February""March",
             "April""May""June""July"
             "August""September","October",
             "November""December"]

print monthList[-: -1]



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Slice