End slice : Slice : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Slice »

 

End slice


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

wordCount = len(monthList)
halfCount = wordCount/2


secondHalf = monthList[halfCount : ]
print secondHalf



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Slice