You seem to be asking for an alternative data structure. Linked lists are good at insertion and deletion from an arbitrary position, but you need to have a reference to the location where you want to insert or delete; otherwise, you'll be spending O(n) scanning to the location that you want to insert or delete from.

As far as I know, there is no linked list in Python's standard library, but you could implement your own.

At the end of the day, you can't do "the exact same thing" in less time; something has to give. You need to relax one of your requirements (e.g. that the list type be used).

An alternative requirement you might be able to relax is "the existing elements need to remain in the same order". If you don't mind a little re-ordering, you can swap lst[i] with lst[-1]. Then, pop from the end (which is efficient for lists). This can be done pretty easily using Python's tuple assignment. Like so:

lst[i], lst[-1] = lst[-1], lst[i]  # swap
lst.pop()  # Now, the item that you wanted removed is gone,
           # but the remaining elements are not
           # all in the same order as before,
           # but they mostly are.

This is often a viable alternative, because you don't always care about the order of a list.

Answer from allyourcode on Stack Overflow
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-pop-how-to-pop-from-a-list-or-an-array-in-python
Python .pop() โ€“ How to Pop from a List or an Array in Python
March 1, 2022 - This means that when the pop() method doesn't have any arguments, it will remove the last list item. So, the syntax for that would look something like this: ... #list of programming languages programming_languages = ["Python", "Java", "JavaScript"] #print initial list print(programming_languages) #remove last item, which is "JavaScript" programming_languages.pop() #print list again print(programming_languages) #output #['Python', 'Java', 'JavaScript'] #['Python', 'Java']
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-the-array-pop-method-in-python
What is the array pop() method in Python?
An array stores multiple values, items, and elements of the same data type in a single variable. The pop method removes an item from an array using the index value or the position of the item in the given array.
Discussions

python - Popping elements from array efficiently - Stack Overflow
Consider an array which we know will have integers from 0 to n in sequence, starting at 0. For example: ... Now, we pop the element at position 1. More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - numpy-equivalent of list.pop? - Stack Overflow
The first returns the row indexes of the matching elements and the second the column indexes. This is useful when searching for elements in a 2d array. In our case, the first element of the first returned list is interesting. ... unutbu had a simple answer for this, but pop() can also take ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - How can I pop elements in a list from a given array of indexes? - Stack Overflow
Communities for your favorite technologies. Explore all Collectives ยท Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
๐ŸŒ stackoverflow.com
Why pop method removes two list at once?
Pop modifies the list. Here you remove an item from the list, and throw it away: guest.pop() Then you remove another item, and print it: print(f"{guest.pop()}") In your second example, you only call pop once, hence why only one item is removed. More on reddit.com
๐ŸŒ r/learnpython
27
16
December 17, 2023
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ methods โ€บ list โ€บ pop
Python List pop()
The list pop() method removes the item at the specified index. The method also returns the removed item. prime_numbers = [2, 3, 5, 7] # remove the element at index 2 removed_element = prime_numbers.pop(2) print('Removed Element:', removed_element) print('Updated List:', prime_numbers) # Output: ...
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_list_pop.asp
Python List pop() Method
Python Examples Python Compiler ... Interview Q&A Python Bootcamp Python Training ... The pop() method removes the element at the specified position....
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-list-pop-how-to-pop-an-element-from-a-array
Python list.pop() โ€“ How to Pop an Element from a Array
February 9, 2023 - In this article, you'll learn how to remove elements in a Python list using: The pop() method.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-pop
How to Use the Python pop() Method | DataCamp
July 31, 2024 - The Python Cheat Sheet for Beginners will also help you reference and understand Python's syntax and different functions. The pop() method is used in lists and dictionaries to remove specific items and return the value. I will show a quick example for both. The first example shows how to remove ...
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-list-pop-method
Python List pop() Method - GeeksforGeeks
1 week ago - Explanation: a.pop() removes and returns the last element of the list and removed value is stored in val.
๐ŸŒ
Mimo
mimo.org โ€บ glossary โ€บ python โ€บ pop()
Python Pop Method: Essential Data Manipulation techniques
In Python, pop() is a list method that removes and returns an element of a list. With an argument, pop() removes and returns the item at the specified index (starting from 0).
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ python_array_pop_method.htm
Python Array pop() Method
The Python array pop() method is used to remove an item at the specified index value from an array. In this method, If we will not provide a index value it will remove the last element by default .
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ gloss_python_array_remove.asp
Python Remove Array Item
Python Examples Python Compiler ... Python Interview Q&A Python Bootcamp Python Training ... You can use the pop() method to remove an element from the array....
๐ŸŒ
Bomberbot
bomberbot.com โ€บ python โ€บ python-pop-how-to-pop-from-a-list-or-an-array-in-python
Python .pop() โ€“ How to Pop from a List or an Array in Python - Bomberbot
For removing items at a specific index, pop(index) is generally faster than del for small lists, but del becomes faster as the list size grows due to the cost of shifting elements. Weโ€˜ve covered a lot of ground in this comprehensive guide to Pythonโ€˜s pop() method. From the basics of its syntax and behavior to advanced usage patterns, performance considerations, best practices, and even some surprising statistics. As youโ€˜ve seen, pop() is a versatile and essential tool for working with lists and arrays in Python.
๐ŸŒ
Analytics Vidhya
analyticsvidhya.com โ€บ home โ€บ understanding python pop() method
Understanding Python pop() Method
October 12, 2024 - It removes an element from a list based on its index and, most importantly, returns the removed element, giving you control over your data structures. Whether youโ€™re managing dynamic lists, handling user input, or manipulating arrays...
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ pop-python
How to Use `.pop()` in Python Lists and Dictionaries | DigitalOcean
July 24, 2025 - Python lists are implemented as dynamic arrays. When you call list.pop(), Python removes and returns the item at the specified index (defaulting to the last item). Hereโ€™s what happens under the hood: pop() without index: Removes the last element.
๐ŸŒ
Career Karma
careerkarma.com โ€บ blog โ€บ python โ€บ python pop: a step-by-step guide
Python Pop: A Step-By-Step Guide | Career Karma
December 1, 2023 - The Python pop() method allows you to remove an element from a specified position in a list. This method is useful if you have an existing array that contains a value you want to remove.
๐ŸŒ
Stack Abuse
stackabuse.com โ€บ remove-element-from-an-array-in-python
How to Remove Elements from an Array/List in Python
September 15, 2023 - Another way we can remove elements from list/array in Python is by using the pop() method. It accepts the index of the element we want to remove.
๐ŸŒ
Codecademy
codecademy.com โ€บ docs โ€บ python โ€บ lists โ€บ .pop()
Python | Lists | .pop() | Codecademy
May 26, 2025 - The .pop() method in Python removes an element from a list at a specified index and returns that element. The .pop() method directly modifies the original list by removing the element at the given position.
๐ŸŒ
Finxter
blog.finxter.com โ€บ home โ€บ learn python blog โ€บ python list pop()
Python List pop() โ€“ Be on the Right Side of Change
June 19, 2021 - This tutorial shows you everything ... in the Python programming language. ... The list.pop() method removes and returns the last element from an existing list....