Assignment to slices : List Element Replace : List PYTHON examples


PYTHON examples » List » List Element Replace »

 

Assignment to slices


Assignment to slices: Replace some items


a = ['spam', 'eggs', 1001234]
# Replace some items:
a[0:2[112]
print a

           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


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


PYTHON examples

 Navioo List
» List Element Replace