Adding Elements to a List : Append : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Append »

 

Adding Elements to a List


li = ["a""b""c""z""example"]      
print li 
li.append("new")                          
print li 
li.insert(2"new")                            
print li 
li.extend(["two""elements"])                
print li



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Append