List extend(seq) Method

In Python Built-In List extend(seq) method is used to append the contents of seq to given list.

Syntax:
There is 1 Parameter used in list extend(seq) method: seq Shows the list of the element.
Example:
#method

list1 = ['TOM', 'JOHN']
list1.extend(list1)
print ("Extended List : ", list1) 

Comments are closed.