List indices start at 0, and lists can be sliced, concatenated : List Sliced : List PYTHON examples


PYTHON examples » List » List Sliced »

 

List indices start at 0, and lists can be sliced, concatenated


List indices start at 0, and lists can be sliced, concatenated:
 


a = ['spam', 'eggs', 1001234]
print a[0]

print a[3]

print a[-2]

print a[1:-1]

print a[:2['bacon', 2*2]

print 3*a[:3['Boo!']



           
         
  



Leave a Comment / Note


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


PYTHON examples

 Navioo List
» List Sliced