Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Concatenate lists

>>> t1 = ['a', 'b', 'c']
>>> t2 = ['d', 'e']
>>> t1.extend(t2)
>>> print(t1)
['a', 'b', 'c', 'd', 'e']
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #Concatenate #lists
ADD COMMENT
Topic
Name
7+8 =