Mega Code Archive
Categories
/
Python Tutorial
/
List
The extend method appends several values at once by supplying a sequence of the values
a = [1, 2, 3] b = [4, 5, 6] a.extend(b) print a