The first is inclusive, and the second is exclusive : Slice : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Slice »

 

The first is inclusive, and the second is exclusive


numbers = [12345678910]
print numbers[3:6]
print numbers[0:1]



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Slice