Append multiple items to a list : List Extend : List PYTHON examples


PYTHON examples » List » List Extend »

 

Append multiple items to a list


Append multiple items to a list


L = [12]
L.extend([3,4,5])      # append multiple items
print L

           
       



    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 Extend