You can find a short collection of useful list functions here.

list.pop(index)

>>> l = ['a', 'b', 'c', 'd']
>>> l.pop(0)
'a'
>>> l
['b', 'c', 'd']
>>> 

del list[index]

>>> l = ['a', 'b', 'c', 'd']
>>> del l[0]
>>> l
['b', 'c', 'd']
>>> 

These both modify your original list.

Others have suggested using slicing:

  • Copies the list
  • Can return a subset

Also, if you are performing many pop(0), you should look at collections.deque

from collections import deque
>>> l = deque(['a', 'b', 'c', 'd'])
>>> l.popleft()
'a'
>>> l
deque(['b', 'c', 'd'])
  • Provides higher performance popping from left end of the list
Answer from kevpie on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-removing-first-element-of-list
Remove first element from list in Python - GeeksforGeeks
This is useful when we need to capture the removed element while modifying the list. ... Explanation: a.pop(0) removes and returns the first element of the list, shifting the remaining elements left.
Published ย  July 11, 2025
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ how-to-remove-the-first-element-from-an-array-in-python
How to remove the first element from an array in Python
Let's compare all these methods together to see which one is the best: The del method: This is a simple and straightforward method for removing the first element of a list, but it can be inefficient for large lists since it requires shifting ...
๐ŸŒ
Pierian Training
pieriantraining.com โ€บ home โ€บ how to remove the first element from an array in python
How to Remove the First Element from an Array in Python - Pierian Training
June 18, 2023 - You can also use this method to remove elements from other positions in an array by passing a different index argument. In Python, we can remove the first element from an array using the `del` keyword.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ removing the first element in a file list
r/learnpython on Reddit: Removing the first element in a file list
November 6, 2021 -

I have a file with a list inside and I want to remove the first option of that list whenever I use the command. When you open the file, it'll have something like ['a', 'b', 'c']. However I want to remove the first element of this list, in this case 'a' and I know that to print the first element I either can do print(list(file[0])) or print(a[1:]). But since I want to remove the first element in the list of the file I am absolutely clueless on what to do. Do I have to use a .replace, .remove or something else in order to remove the first option every time I run the command?

๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ python-program-to-remove-the-first-element-from-an-array
Python Program to Remove the first element from an Array
Let us apply those techniques in the deletion of first element of the array. We shall discuss the methods and keywords that are used to remove the first element from an array one after another in a row now. The method pop() is used to delete the elements of the arrays, lists, etc in Python ...
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ python โ€บ remove first element from list in python
Remove First Element from List in Python - Spark By {Examples}
May 31, 2024 - Like above use the index 0 to reference the first element of the list and then use del to remove it. # Consider the list of strings technology = ["Python", "Spark", "Hadoop","Java", "Pandas"] print("Actual List: ",technology) # Remove first ...
๐ŸŒ
FavTutor
favtutor.com โ€บ blogs โ€บ remove-first-element-from-list-python
Remove First Element from List in Python (with code)
August 24, 2023 - Learn how to remove the first element from the list in Python using different methods including pop, remove, and list comprehension.
Find elsewhere
๐ŸŒ
ItSolutionstuff
itsolutionstuff.com โ€บ post โ€บ how-to-remove-first-element-from-array-in-pythonexample.html
How to Remove First Element from List in Python? - ItSolutionstuff.com
October 30, 2023 - I would like to share with you python list remove one element. you will learn python list remove first n elements. In this example, I will give you two examples. one using "del" in python and another using "pop" function of array.
๐ŸŒ
Finxter
blog.finxter.com โ€บ 5-best-ways-to-remove-the-first-element-from-a-numpy-array
5 Best Ways to Remove the First Element from a Numpy Array โ€“ Be on the Right Side of Change
The numpy.delete() function returns a new array with sub-arrays along an axis deleted. To remove the first element, specify the array and the index of the element you want to delete, which is 0 for the first element.
๐ŸŒ
Data Science Parichay
datascienceparichay.com โ€บ home โ€บ blog โ€บ remove first element from numpy array
Remove First Element From Numpy Array - Data Science Parichay
June 13, 2022 - You can use the numpy delete() function to remove the first element of a numpy array. Pass 0 as the index of the element to be removed.
๐ŸŒ
w3resource
w3resource.com โ€บ python-exercises โ€บ array โ€บ python-array-exercise-12.php
Python: Remove the first occurrence of a specified element from an array - w3resource
Original array: array('i', [1, ... program to remove the first occurrence of a target value from an array using the remove() method....
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ gloss_python_array_remove.asp
Python Remove Array Item
You can use the pop() method to remove an element from the array. ... You can also use the remove() method to remove an element from the array. ... Note: The list's remove() method only removes the first occurrence of the specified value.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ why is it that removing an element from the start of an array o(n) while at the end o(1)?
r/learnprogramming on Reddit: Why is it that removing an element from the start of an array O(n) while at the end O(1)?
September 16, 2023 -

From my understanding the reason why removing the last element is O(1) is because you don't need to shift the array in memory. You simply remove the last element and leave the old space empty. So why is it that if you remove the first element that the Array HAS to to shift in memory (making it O(n))?

I don't understand the reasoning, if we are okay with leaving empty space in memory at the end of an array and not shifting all the other things surrounding the array in memory. Then why do we have to shift the array in memory if there is space that the start?

I am not understanding, if it's because the memory is trying to stay compact and no empty spaces are allowed. Then why don't all the other stuff in memory be shifted to the left after new space was cleared once we removed the last element from the array?

๐ŸŒ
Brainly
brainly.com โ€บ computers and technology โ€บ high school โ€บ how do you remove the first element from an array in python?
[FREE] How do you remove the first element from an array in Python? - brainly.com
The pop(0) method removes the first ... management in Python. To remove the first element from an array in Python, you can use list operations, as Python's list acts like an array....
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-remove-array-item
Python Remove Array Item - GeeksforGeeks
July 23, 2025 - This article will cover different methods to remove items from an array in Python. The remove() method removes the first occurrence of a specified value from the array. If the value is not found, it raises a ValueError.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_lists_remove.asp
Python - Remove List Items
The remove() method removes the specified item. ... thislist = ["apple", "banana", "cherry"] thislist.remove("banana") print(thislist) Try it Yourself ยป ยท If there are more than one item with the specified value, the remove() method removes ...
๐ŸŒ
Quora
quora.com โ€บ How-do-I-remove-an-element-from-an-array-in-Python
How to remove an element from an array in Python - Quora
Let us suppose you want to remove the third item (value 42) in each possibility. In the case of a numpy array, you use the delete() method, using the index (2) of the desired item to remove: [code]import numpy as np s = np.array([11, 21, 42, 6...
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-the-array-remove-function-in-python
What is the array remove() function in Python?
An array in Python is used to store multiple values of the same type in a single variable. The remove() function is used to remove the first occurrence of a value in a given array.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-remove-item-from-list
How to Remove an Item from a List in Python: A Full Guide | DataCamp
August 1, 2024 - In the first case, we can use the remove() function. # Initialize a list with integers from 1 to 5 my_list = [1, 2, 3, 4, 5] # Removes element 5 from the list my_list.remove(5) print(my_list) # Expected output: [1, 2, 3, 4]