list() converts the iterable passed to it to a list. If the itertable is already a list then a shallow copy is returned, i.e only the outermost container is new rest of the objects are still the same.

>>> t = (1,2,3,4,[5,6,7,8],9)
>>> lst = list(t) 
>>> lst[4] is t[4]  #outermost container is now a list() but inner items are still same.
True

>>> lst1 = [[[2,3,4]]]
>>> id(lst1)
140270501696936
>>> lst2 = list(lst1)
>>> id(lst2)
140270478302096
>>> lst1[0] is lst2[0]
True
Answer from Ashwini Chaudhary on Stack Overflow
🌐
W3Schools
w3schools.com › python › python_ref_list.asp
Python List/Array Methods
Python has a set of built-in methods that you can use on lists/arrays.
🌐
W3Schools
w3schools.com › python › ref_func_list.asp
Python list() Function
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... The list() function creates a list object.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-list-function
Python list() Function - GeeksforGeeks
March 4, 2025 - list() function in Python is used to create lists from iterable objects. An iterable is an object that can be looped over, such as strings, tuples, sets, dictionaries and other collections.
🌐
DataCamp
datacamp.com › tutorial › python-list-function
Python List Functions & Methods Tutorial and Examples | DataCamp
December 19, 2022 - The main characteristics of Python lists are that they are iterable, ordered, indexed, mutable, and allow duplicated values. Place a sequence of items inside square brackets and separate them by comma, e.g., ['cake', 'ice-cream', 'donut']. Alternatively, use the list() built-in function with double brackets: list(('cake', 'ice-cream', 'donut')).
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-lists
Python Lists - GeeksforGeeks
We can also create a list by passing an iterable (like a tuple, string or another list) to the list() function. ... We can use the multiplication operator * to create a list with repeated items. ... Elements in a list are accessed using indexing. Python indexes start at 0, so a[0] gives the ...
Published   January 10, 2026
🌐
Programiz
programiz.com › python-programming › methods › built-in › list
Python list()
Become a certified Python programmer. Try Programiz PRO! ... The list() constructor converts an iterable (dictionary, tuple, string etc.) to a list and returns it.
🌐
GeeksforGeeks
geeksforgeeks.org › python › list-methods-python
Python List methods - GeeksforGeeks
Python list methods are built-in functions that allow us to perform various operations on lists, such as adding, removing, or modifying elements.
Published   July 23, 2025
Find elsewhere
🌐
Python documentation
docs.python.org › 3 › tutorial › datastructures.html
5. Data Structures — Python 3.14.3 documentation
This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. More on Lists: The list data type has some more methods. Here are all of the method...
🌐
Data Science Discovery
discovery.cs.illinois.edu › learn › Basics-of-Data-Science-with-Python › Lists-and-Functions-in-Python
Lists and Functions in Python - Data Science Discovery
In addition to lists, Python provides functions to to group blocks of code that perform a specific task. The use of functions will help make our code more organized, readable, and efficient by avoiding repetition and allowing the same code to be used in multiple places.
🌐
Tutorialspoint
tutorialspoint.com › python › python-list-function.htm
Python list() Function
The Python list() function is used to create a new list. A list is a collection of items that can hold different types of data, such as numbers, strings, or other objects. It is an ordered and mutable (changeable) data structure, allowing you to store and organize multiple values in a single variabl
🌐
Python documentation
docs.python.org › 3 › library › functions.html
Built-in Functions — Python 3.14.3 documentation
2 weeks ago - The function deletes the named attribute, provided the object allows it. For example, delattr(x, 'foobar') is equivalent to del x.foobar. name need not be a Python identifier (see setattr()). ... Create a new dictionary. The dict object is the dictionary class. See dict and Mapping Types — dict for documentation about this class. For other containers see the built-in list, set, and tuple classes, as well as the collections module.
🌐
Du
cs.du.edu › ~intropython › intro-to-programming › list_methods.html
List methods - Introduction to Programming
The full list can be found at Python list documentation by w3schools or Offical python documentation on list methods. Here are the list methods you'll learn: the count() and index() methods for counting and searching · theinsert() and extend() methods for adding elements · the pop() and remove() methods and the del keyword for removing elements · the reverse() and sort() methods and the sorted() function for rearranging elements
🌐
Software Testing Help
softwaretestinghelp.com › home › python › python list functions – tutorial with examples
Python List Functions - Tutorial With Examples
April 1, 2025 - The Python list method len() returns the size(number of items) of the list by calling the list object’s own length method. It takes in a list object as an argument and doesn’t have a side effect on the list. ... Where s can be either a sequence or collection. Example 1: Write a function that computes and returns the size/length of a list.
🌐
HubSpot
blog.hubspot.com › home › the hubspot website blog
Python List Functions: 18 Definitions & Examples
March 20, 2023 - HubSpot’s Website Blog covers everything you need to know to build maintain your company’s website.
🌐
Cisco
ipcisco.com › home › python list methods
Python List Methods Explained with Examples | Practice Exercises
March 15, 2021 - There are different methods used with lists in python. In other words, there are many Python List Methods. In this lesson, we will focus on these Python List Methods and we will give different examples for each of them. Let’s start to learn medhods of lists in python, python list functions.
🌐
Unstop
unstop.com › home › blog › python list functions: a guide to all operations (+examples)
Python List Functions: A Guide To All Operations (+Examples)
March 30, 2025 - Python list functions let you manipulate lists efficiently. Learn key functions like list(), append(), sort(), & more with examples to enhance your Python skills.
🌐
Medium
medium.com › @wvrushali27 › built-in-list-functions-methods-in-python-a761342452dd
Built-in List Functions & Methods in Python | by Vrushali Walekar | Medium
November 3, 2023 - The Python’s List extends() method iterates over an iterable like a string, list, tuple, etc. and adds each element of the iterable to the end of the python list. ... Here, f2 is a list, we can extend the list using a extend() function and pass the parameter that is “bac” it will extend the list taking a character one by one.
🌐
Analytics Vidhya
analyticsvidhya.com › home › a beginner’s guide to python list methods
Python List Methods Every Developer Should Know
October 15, 2024 - Lists are like dynamically sized arrays found in other programming languages like C++ or Java. In Python, a Function may be passed input parameters and may or may not return a result. Method, on the other hand, maybe passed off as an object instance and may or may not result in the expected output.
🌐
Google
developers.google.com › google for education › python › python lists
Python Lists | Python Education | Google for Developers
January 23, 2026 - Python has a great built-in list type named "list". List literals are written within square brackets [ ]. Lists work similarly to strings -- use the len() function and square brackets [ ] to access data, with the first element at index 0.