Python List extend() Method Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report In Python, extend() method is used to add items from one list to the end of another list. This method modifies the original list by appending all items from the given iterable. Using extend() method is easy and efficient way to merge two lists or add multiple elements at once.Let’s look at a simple example of the extend() method. Python a = [1, 2, 3] b = [4, 5] # Using extend() to add elements of b to a a.extend(b) print(a) Output[1, 2, 3, 4, 5] Explanation: The elements of list b are added to the end of list a. The original list a is modified and now contains [1, 2, 3, 4, 5].Syntax of List extend() Methodlist_name.extend(iterable)Parameters:list_name: The list that will be extendediterable: Any iterable (list, set, tuple, etc.)Returns: Python List extend() returns none.Using extend() with Different IterablesThe extend() method can work with various types of iterables such as: Lists, Tuples, Sets and Strings (each character will be added separately)Example: Python # Using a tuple a = [1, 2, 3] b = (4, 5) a.extend(b) print(a) # Using a set a = [1, 2, 3] b = {4, 5} a.extend(b) print(a) # Using a string a = ['a', 'b'] b = "cd" a.extend(b) print(a) Output[1, 2, 3, 4, 5] [1, 2, 3, 4, 5] ['a', 'b', 'c', 'd'] Also Read - Python List MethodsSimilar Article on List extend:Extending a list in Python (5 different ways)append() and extend() in Python Comment More info A AmiyaRanjanRout Follow Improve Article Tags : Python python-list python-list-functions python Explore Python FundamentalsPython Introduction 3 min read Input and Output in Python 4 min read Python Variables 5 min read Python Operators 5 min read Python Keywords 2 min read Python Data Types 8 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 7 min read Python Functions 5 min read Recursion in Python 6 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 5 min read Python Tuples 4 min read Python Dictionary 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 5 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 2 min read Python MySQL 9 min read Python Packages 12 min read Python Modules 7 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 6 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 15+ min read StatsModel Library- Tutorial 4 min read Learning Model Building in Scikit-learn 8 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 7 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 7 min read Python | Build a REST API using Flask 3 min read How to Create a basic API using Django Rest Framework ? 4 min read Python PracticePython Quiz 3 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like