Python List append() Method Last Updated : 18 Mar, 2025 Comments Improve Suggest changes Like Article Like Report append() method in Python is used to add a single item to the end of list. This method modifies the original list and does not return a new list. Let's look at an example to better understand this. Python a = [2, 5, 6, 7] # Use append() to add the element 8 to the end of the list a.append(8) print(a) Output[2, 5, 6, 7, 8] Explanation: append(8) adds 8 to the end of the list a, modifying it in place.Table of ContentSyntax of append() methodExamples of append() MethodFrequently Asked Questions on append() MethodSyntax of append() methodlist.append(element)Parameter:element: The item to be appended to the list. This can be of any data type (integer, string, list, object, etc.). This parameter is mandatory, and omitting it will cause an error.Return:append() does not return any value. It modifies the original list in place.Examples of append() MethodHere are some examples and use-cases of list append() function in Python.1. Appending Elements of Different TypesThe append() method allows adding elements of different data types (integers, strings, lists or objects) to a list. Python lists are heterogeneous meaning they can hold a mix of data types. Python a = [1, "hello", 3.14] a.append(True) print(a) Output[1, 'hello', 3.14, True] Explanation: In this list "a" contains elements of different data types (integer, string, float) and append(True) adds a boolean True to the end of the list.2. Appending List to a ListWhen appending one list to another, the entire list is added as a single element, creating a nested list. Python a = [1, 2, 3] a.append([4, 5]) print(a) Output[1, 2, 3, [4, 5]] Explanation: append() method adds the list [4, 5] as a single element to the end of the list a, resulting in a nested list.3. Appending Using a LoopAppending multiple elements using a loop: Python a = [] for i in range(5): a.append(i) print(a) Output[0, 1, 2, 3, 4] Append vs Extend vs InsertMethodFunctionalityappend(x)Adds x as a single element at the end of the list.extend(iterable)Adds all elements of iterable individually to the list.insert(index, x)Inserts x at the specified index.Example demonstrating the difference between append and extend: Python a = [1, 2, 3] a.append([4, 5]) print(a) b = [1, 2, 3] b.extend([4, 5]) print(b) Output[1, 2, 3, [4, 5]] [1, 2, 3, 4, 5] Explanation:append([4,5]) adds [4,5] as a single element, creating a nested list ([1, 2, 3, [4, 5]]).extend([4,5]) adds each element separately, resulting in [1, 2, 3, 4, 5]. Comment More infoAdvertise with us Next Article Python List extend() Method A AmiyaRanjanRout Follow Improve Article Tags : Python python-list Python-Built-in-functions python-list-functions Python list-programs +1 More Practice Tags : pythonpython-list Similar Reads Python List methods Python list methods are built-in functions that allow us to perform various operations on lists, such as adding, removing, or modifying elements. In this article, weâll explore all Python list methods with a simple example.List MethodsLet's look at different list methods in Python:append(): Adds an 3 min read Python List append() Method append() method in Python is used to add a single item to the end of list. This method modifies the original list and does not return a new list. Let's look at an example to better understand this.Pythona = [2, 5, 6, 7] # Use append() to add the element 8 to the end of the list a.append(8) print(a)O 3 min read Python List extend() Method 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 2 min read Python List index() - Find Index of Item index() method in Python is a helpful tool when you want to find the position of a specific item in a list. It works by searching through the list from the beginning and returning the index (position) of the first occurrence of the element you're looking for. Example:Pythona = ["cat", "dog", "tiger" 3 min read Python List max() Method max() function in Python is a built-in function that finds and returns the largest element from the list. Let's understand it better with an example:Pythona = [2,3,6,1,8,4,9,0] print(max(a))Output9 Syntaxmax(listname)Parameter:listname : Name of list in which we have to find the maximum value.Return 4 min read Python min() Function Python min() function returns the smallest value from a set of values or the smallest item in an iterable passed as its parameter. It's useful when you need to quickly determine the minimum value from a group of numbers or objects. For example:Pythona = [23,25,65,21,98] print(min(a)) b = ["banana", 4 min read How To Find the Length of a List in Python The length of a list refers to the number of elements in the list. There are several methods to determine the length of a list in Python. For example, consider a list l = [1, 2, 3, 4, 5], length of this list is 5 as it contains 5 elements in it. Let's explore different methods to find the length of 2 min read Python List pop() Method The pop() method is used to remove an element from a list at a specified index and return that element. If no index is provided, it will remove and return the last element by default. This method is particularly useful when we need to manipulate a list dynamically, as it directly modifies the origin 2 min read Python List remove() Method Python list remove() function removes the first occurrence of a given item from list. It make changes to the current list. It only takes one argument, element we want to remove and if that element is not present in the list, it gives ValueError.Example:Pythona = ['a', 'b', 'c'] a.remove("b") print(a 3 min read Python List Reverse() The reverse() method is an inbuilt method in Python that reverses the order of elements in a list. This method modifies the original list and does not return a new list, which makes it an efficient way to perform the reversal without unnecessary memory uses.Let's see an example to reverse a list usi 2 min read Like