The extend method appends several values at once by supplying a sequence of the values : Extend : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Extend »

 

The extend method appends several values at once by supplying a sequence of the values


a = [123]
b = [456]
a.extend(b)
print a



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Extend