You don't need to iterate the array. Just:

>>> x = ['[email protected]', '[email protected]']
>>> x
['[email protected]', '[email protected]']
>>> x.remove('[email protected]')
>>> x
['[email protected]']

This will remove the first occurence that matches the string.

EDIT: After your edit, you still don't need to iterate over. Just do:

index = initial_list.index(item1)
del initial_list[index]
del other_list[index]
Answer from Bogdan on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ gloss_python_array_remove.asp
Python Remove Array Item
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. Python Array Tutorial Array What is an Array Access Arrays Array Length ...
Discussions

How do I remove an element from the end of a list without returning the value? (Python)
Can't you just ignore the returning value...? More on reddit.com
๐ŸŒ r/learnprogramming
5
2
November 5, 2020
How to delete all the items (in a list) beautifully?
How to delete all the items (in a list) beautifully ยท Hello! I want to know how to delete all the items (in a list) beautifully? For example: list = [2, 3, 4] Can I just do it in this way? list = [] Or del list[2], del list[1], del list[0] Thank you for your time ยท For the record list.clear() ... More on discuss.python.org
๐ŸŒ discuss.python.org
0
February 10, 2024
python - How to remove an element from a list by index - Stack Overflow
How do I remove an element from a list by index? I found list.remove(), but this slowly scans the list for an item by value. More on stackoverflow.com
๐ŸŒ stackoverflow.com
How do I remove elements from a 1D array?
For the record, if you re-run your program, you'll get a different 2D array each time since you did not set a seed. I've set a seed that fullfills this condition: np.random.seed(42) x1 = np.random.randint(10, size=(4, 6)) second_col = x1[:, 1] filtered_col = second_col[second_col != 6] print(filtered_col) In numpy you can index using boolean expressions like second_col != 6. This creates an index vector of Trues and Falses. This index vector is then applied to your target, retaining only values at the positions where the index vector is True. More on reddit.com
๐ŸŒ r/learnpython
8
1
January 6, 2022
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-remove-array-item
Python Remove Array Item - GeeksforGeeks
July 23, 2025 - Python ยท import array # Create ... Using List Comprehension ยท You can use slicing to remove elements from an array by creating a new array that excludes the elements you want to remove....
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ home โ€บ python โ€บ remove items from python array
Remove Items from Python Array
February 21, 2009 - Python does not provide built-in support for arrays, however, we can use the array module to achieve the functionality like an array. To remove the first occurrence of a given value from the array, use remove() method.
๐ŸŒ
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...
๐ŸŒ
Python Forum
python-forum.io โ€บ thread-41204.html
How to remove some elements from an array in python?
November 27, 2023 - I have a sorted list of integers that has about 4000 elements. I'm trying to remove every element that is above 550. I used remove() function for the task but it doesn't seem to work. I also looked into pop, tried it and it doesn't seem to work to be...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ how do i remove an element from the end of a list without returning the value? (python)
r/learnprogramming on Reddit: How do I remove an element from the end of a list without returning the value? (Python)
November 5, 2020 -

Hi, so I am writing a class for doing some methods on a list.

I already know how to add an element to the end of a list by using the append() method.

However if I want to remove an element from the end of a list, without returning the value, how would I go about that? I know the pop() method can remove an element from the end of a list but it then returns the value of that element. What kind of method can I include in my class that will remove an element from the end of the list?

Find elsewhere
๐ŸŒ
Stack Abuse
stackabuse.com โ€บ remove-element-from-an-array-in-python
How to Remove Elements from an Array/List in Python
September 15, 2023 - We can use the remove() method on any array or list in Python. To use it, we can simply pass the value of the element we want to remove. Let's imagine we have the following array: ... Another way we can remove elements from list/array in Python is by using the pop() method.
๐ŸŒ
Medium
medium.com โ€บ @heyamit10 โ€บ different-ways-to-remove-elements-from-a-numpy-array-59a8a7f8fe33
Different Ways to Remove Elements from a NumPy Array | by Hey Amit | Medium
April 18, 2025 - When working with NumPy arrays, you might often need to remove unwanted elements. While Python lists give you the remove() or pop() methods, NumPy offers more efficient and tailored solutions.
๐ŸŒ
StrataScratch
stratascratch.com โ€บ blog โ€บ how-to-remove-an-element-from-a-list-in-python
How to Remove an Element from a List in Python - StrataScratch
October 3, 2025 - In these cases, removing the item is the fix. It keeps your list clean and makes your code work better. Python gives you many ways to do this. Each one is useful in a different case. Letโ€™s explore each method individually. Each method for removing elements from a list serves a different use case.
๐ŸŒ
Sentry
sentry.io โ€บ sentry answers โ€บ javascript โ€บ how can i remove a specific item from an array?
How Can I Remove a Specific Item from an Array? | Sentry
If you want to remove an item from an array, you can use the pop() method to remove the last element or the shift() method to remove the first element.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
How to delete all the items (in a list) beautifully? - Python Help - Discussions on Python.org
February 10, 2024 - How to delete all the items (in a list) beautifully ยท Hello! I want to know how to delete all the items (in a list) beautifully? For example: list = [2, 3, 4] Can I just do it in this way? list = [] Or del list[2], del list[1], del list[0] Thank you for your time ยท For the record list.clear() ...
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ 2.2 โ€บ reference โ€บ generated โ€บ numpy.delete.html
numpy.delete โ€” NumPy v2.2 Manual
The axis along which to delete the subarray defined by obj. If axis is None, obj is applied to the flattened array. ... A copy of arr with the elements specified by obj removed. Note that delete does not occur in-place.
๐ŸŒ
Real Python
realpython.com โ€บ remove-item-from-list-python
How to Remove Items From Lists in Python โ€“ Real Python
November 19, 2024 - Note that Python lists use zero-based indexing for positioning, which means that the first element in a list is at index 0, the second element is at index 1, and so on. With that in mind, hereโ€™s an example of how you can use .pop() to remove and display the first element in your books list: ... You invoke the .pop() method on the books list with an index of 0, indicating the first element in the list. This call removes the first title, Dragonsbane, from the list and then returns it.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ remove-multiple-elements-from-a-list-in-python
Remove Multiple Elements from List in Python - GeeksforGeeks
The while loop make sure that all occurrences of each element are removed from the list.
Published ย  October 28, 2025
๐ŸŒ
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.
๐ŸŒ
Python Engineer
python-engineer.com โ€บ posts โ€บ remove-elements-in-list-while-iterating
How to remove elements in a Python List while looping - Python Engineer
from itertools import filterfalse a[:] = filterfalse(even, a) # --> a = [1, 3] If you really want to keep the for-loop syntax, then you need to iterate over a copy of the list (A copy is simply created by using a[:]). Now you can remove items ...
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ tutorial โ€บ datastructures.html
5. Data Structures โ€” Python 3.14.3 documentation
There is a way to remove an item from a list given its index instead of its value: the del statement. This differs from the pop() method which returns a value. The del statement can also be used to remove slices from a list or clear the entire ...
๐ŸŒ
Great Learning
mygreatlearning.com โ€บ blog โ€บ it/software development โ€บ how to remove an item from a list in python
How to Remove an Item from a List in Python
June 11, 2025 - When to use: When you know the item's position, need to remove multiple items, or delete the list variable. ... # Create a list of numbers numbers = [10, 20, 30, 40, 50] # Delete the item at index 2 (which is 30) del numbers[2] print(numbers) # Delete a slice (items from index 0 up to, but not including, index 2) numbers_slice = [1, 2, 3, 4, 5, 6] del numbers_slice[0:2] # Removes 1 and 2 print(numbers_slice) # Delete the entire list variable my_data = ["A", "B", "C"] del my_data # print(my_data) # This would now raise a NameError because my_data no longer exists