The Difference Between Extend and Append : Extend : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Extend »

 

The Difference Between Extend and Append


li = ['a''b''c'
li.extend(['d''e''f'])                
print li 
print len(li)                                        
print li[-1]



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Extend