Articles → Python → Extend Method In Python

Extend Method In Python






Purpose





Example


list1 = ["Apple", "Banana"]
list2 = ["Strawberry","Orange"]

list1.extend(list2)

print(list1)



Output


Picture showing the output of Extend method in python



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 7, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250