Articles → Python → Extend method in python

Extend method in python






Purpose





Example


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

list1.extend(list2)

print(list1)



Output



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250