It's O(n), also check out: http://wiki.python.org/moin/TimeComplexity

This page documents the time-complexity (aka "Big O" or "Big Oh") of various operations in current CPython. Other Python implementations (or older or still-under development versions of CPython) may have slightly different performance characteristics. However, it is generally safe to assume that they are not slower by more than a factor of O(log n)...

Answer from Zach Kelling on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › complexity-cheat-sheet-for-python-operations
Complexity Cheat Sheet for Python Operations - GeeksforGeeks
July 12, 2025 - This cheat sheet is designed to help developers understand the average and worst-case complexities of common operations for these data structures that help them write optimized and efficient code in Python. Python's list is an ordered, mutable sequence, often implemented as a dynamic array. Below are the time complexities for common list operations:
Discussions

python - what is the time complexity of list.index(obj) method? - Stack Overflow
list1 = ['a','b','c','d'] a = list1.index('c') print(a) #2 · But what is the time complexity? More on stackoverflow.com
🌐 stackoverflow.com
Does pop(i) have a Time Complexity of O(n) or O(k)?
To me it makes sense that it would be O(k) since you only have to shift the objects to the right of the index that you popped but please correct me if I'm misunderstanding something. ... O(k) when k = n-1 is really the same as O(n) where time complexity is concerned. More on reddit.com
🌐 r/learnpython
3
3
July 1, 2020
Python List Indexing Efficiency - Stack Overflow
List indexing in python is always of O(1). For further details on time complexity follow this link More on stackoverflow.com
🌐 stackoverflow.com
python - What is (list.index() inside a for loop) complexity - Stack Overflow
Note: That implementation will only work when elements in both lists will be distinct. otherwise there will be more than one indices for a particular value. If you use C++, then I will suggest you to use unordered_map as it work in O(1). The time complexity of this implementation will be O( ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Analytics Vidhya
analyticsvidhya.com › home › how can i manipulate python list elements using indexing?
How can I Manipulate Python List Elements Using Indexing?
January 22, 2024 - When performing list indexing operations, it is crucial to consider the time complexity of the operations involved. Direct indexing has a time complexity of O(1), while using the index() method for searching has a time complexity of O(n).
🌐
Medium
medium.com › @ivanmarkeyev › understanding-python-list-operations-a-big-o-complexity-guide-49be9c00afb4
Understanding Python List Operations: A Big O Complexity Guide | by Ivan Markeev | Medium
June 4, 2023 - Under the hood, lists use an underlying array structure to store their elements. This enables direct access to any element by index, resulting in O(1) complexity. Regardless of the size of the list, accessing an element takes the same amount of time.
🌐
Quora
quora.com › How-do-Python-lists-maintain-constant-time-complexity-for-indexing-if-their-elements-can-be-of-more-than-one-type
How do Python lists maintain constant time complexity for indexing if their elements can be of more than one type? - Quora
Answer (1 of 4): in a C arrays where the data is held in contiguous memory, you are right that indexing couldn’t be constant time in a heterogeneous container as you would have to sum the widths of all of the previous items before being able to fetch an item (or you would need to keep a separate ...
🌐
YourBasic
yourbasic.org › algorithms › time-complexity-arrays
Time complexity of array/list operations [Java, Python] · YourBasic
You can read or write a list item by referring to its index in constant time. However, some array operations – such as add, remove, and search – can be quite expensive, with worst-case linear time complexity.
🌐
Finxter
blog.finxter.com › home › learn python blog › python list index() – a simple illustrated guide
Python List index() - A Simple Illustrated Guide - Be on the Right Side of Change
June 19, 2021 - For n elements, the runtime complexity is O(n) because in the worst-case you need to iterate over each element in the list to find that the element does not appear in it. Let’s check the runtime complexity practically for different list sizes ...
🌐
Python
wiki.python.org › moin › TimeComplexity
TimeComplexity - Python Wiki
Note that there is a fast-path ... complexity, but it can significantly affect the constant factors: how quickly a typical program finishes. [1] = These operations rely on the "Amortized" part of "Amortized Worst Case". Individual actions may take surprisingly long, depending on the history of the container. [2] = Popping the intermediate element at index k from a list of size n ...
Find elsewhere
🌐
DEV Community
dev.to › williams-37 › understanding-time-complexity-in-python-functions-5ehi
Understanding Time Complexity in Python Functions - DEV Community
October 25, 2024 - Common time complexities include: ... Understanding these complexities helps developers choose the right algorithms and data structures for their applications. ... Accessing an element by index in a list is a constant time operation.
🌐
Bradfield CS
bradfieldcs.com › algos › analysis › performance-of-python-types
Performance of Python Types
In Python lists, values are assigned to and retrieved from specific, known memory locations. No matter how large the list is, index lookup and assignment take a constant amount of time and are thus
🌐
Reddit
reddit.com › r/learnpython › does pop(i) have a time complexity of o(n) or o(k)?
r/learnpython on Reddit: Does pop(i) have a Time Complexity of O(n) or O(k)?
July 1, 2020 - The time complexity depends not on n, but on the index value to list.pop(), which is possibly a function of n, or not. For example, as n grows, any fixed negative index value to list.pop() will be O(1), and any fixed non-negative value will be O(n).
🌐
Analytics Vidhya
analyticsvidhya.com › home › python list index: a guide to finding and manipulating list elements
Python List Index: A Guide to Finding and Manipulating List Elements
January 23, 2024 - Therefore, if we need to perform frequent index-based operations, it is advisable to use direct indexing instead of searching for elements. This can significantly improve the efficiency of our code. In addition to optimizing time complexity, optimizing memory usage when working with lists is also essential.
🌐
Apps Developer Blog
appsdeveloperblog.com › home › python › python list index()
Python List index() - Apps Developer Blog
January 27, 2023 - The index function finds the match by checking every element of the list until the match is found. Thus, for a smaller list, this is a good choice. But if you are dealing with huge lists and you are not sure whether the match will be found or not, then this function is not. This will increase the time cost of your code. So the longer the list, the more amount of time it will take. To avoid the time complexity, you can narrow down the search by giving the start and end parameters.
🌐
Python Morsels
pythonmorsels.com › time-complexities
Python Big O: the time complexities of different data structures in Python - Python Morsels
April 16, 2024 - Here are the time complexities of common deque operations: Note that we can efficiently add and remove items from the beginning of a deque with the appendleft and popleft methods. If you find yourself calling the insert or pop methods on a list with an index of 0, you could probably speed your ...
🌐
Baeldung
baeldung.com › home › java › java collections › time complexity of java collections
Time Complexity of Java Collections | Baeldung
September 24, 2025 - When we talk about collections, we usually think about the List, Map, and Set data structures, as well as their common implementations. First, we’ll look at Big-O complexity insights for common operations. Then we’ll show the real numbers of some collection operations’ running times.
🌐
AlgoCademy
algocademy.com › link
Time Complexity Guidelines in Python | AlgoCademy
The code is straightforward and leverages Python's ability to access list elements in constant time. The time complexity of the optimized solution is O(1) because accessing an element by its index in a list is a constant time operation.