LHS slice and the RHS may each be of any length : Slice : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Slice »

 

LHS slice and the RHS may each be of any length


x = [1234]
x[1:3[223344]     # x is now [12233444]
print x
x[1:4[89]           # x is now [1894]
print x



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Slice