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

>>> x = ['ala@ala.com', 'bala@bala.com']
>>> x
['ala@ala.com', 'bala@bala.com']
>>> x.remove('ala@ala.com')
>>> x
['bala@bala.com']

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
April 30, 2021
Deleting element from list?
Did you try it yourself? a = ['a', 'b', 'c', 'd', 'e', 'f'] print(len(a)) print(a[4]) removed = a.pop() print(removed) print(len(a)) print(a[4]) EDIT: grammar More on reddit.com
🌐 r/learnpython
7
6
January 18, 2018
Remove Array Items Meeting Condition?
Hi. The first suggestion I'd recommend is to replace your array with a List . This will cut down the time it'll take to populate your collection. It also gives an added bonus of the Remove() method. Which makes it so that you can remove items from the collection instead of recreating it with what you'd like to save. As for the filtering. Why not do all the required checks in one loop and save (for array) the item which passes. Or remove (for list) the item which doesn't pass. A generic example of possible ways of approaching it # Initializes a new list with an initial size of $AllFilesArray $FilesToKeepList = [System.Collections.Generic.List[PSCustomObject]]::new($FilesToKeepList.Count) foreach ($item in $AllFilesArray) { # If example if (($itemToKeep.Property2 -eq 'SomeValue') -or ($itemToKeep.Property3 -eq 'SomeOtherValue')) { $FilesToKeepList.Add($item) } # Switch example switch ($itemToKeep) { { $_.Property2 -eq 'SomeValue' } { $FilesToKeepList.Add($item) # Break exits the loop and goes to the next item in collection without doing any further checks break } { $_.Property3 -eq 'SomeOtherValue' } { $FilesToKeepList.Add($item) break } } } More on reddit.com
🌐 r/PowerShell
7
1
September 12, 2022
Python: How to remove element by index
Try using the del statement . More on reddit.com
🌐 r/learnprogramming
9
1
July 25, 2023
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-remove-array-item
Python Remove Array Item - GeeksforGeeks
July 23, 2025 - import array # Create an array of integers arr = array.array('i', [1, 2, 3, 4, 5]) # Remove the element at index 2 (third element) arr = arr[:2] + arr[3:] print(arr) ... The pop() method removes an element at a specified index and returns it. If ...
🌐
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.
🌐
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.
🌐
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)
April 30, 2021 -

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
🌐
Tutorialspoint
tutorialspoint.com › python › python_remove_array_items.htm
Python - Remove Array Items
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.
🌐
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.
🌐
CodeChef
codechef.com › learn › course › college-data-structures-pyth › CPDSPY01 › problems › CPDSAPY12
Deletion from an array in Data Structures using Python
Test your Data Structures using Python knowledge with our Deletion from an array practice problem. Dive into the world of college-data-structures-pyth challenges at CodeChef.
🌐
STechies
stechies.com › remove-element-from-array-python
How to remove element from an Array in Python
Then we use the list comprehension to extract the data we want to remove using the loop that will iterate every element of the array since it is an iterable object of Python. Using the not equals operator, we picked that particular element that we don’t want further in our array test and initialized all other elements in a fresh new object test2. Finally, we display the test2’s data using print(). ... All of these techniques can help in removing elements from an array.
Top answer
1 of 4
1
Delete the List and its element:We have multiple functions for deleting the List’s element with different functionality. del function helps to delete the list variable from code.pop function helps to delete the individual element according to positioning of the list. Return the position value.remove function helps to delete the first occurrence of the number or string mentioned in its arguments.Clear function clear the all elements present in the list without delete its variable.#Program:>>> a=[1,2,3,4,5,"sahil"]>>> a.pop(0)# delete element at position 01>>> a[2, 3, 4, 5, 'sahil']>>> a.remove(2)# delete element 2 that present at 0 position>>> a[3, 4, 5, 'sahil']>>> del a[1:3] # delete multiple elements from list at position 1 to 2 >>> a[3, 'sahil']>>> a.clear()# clear the list>>> a[]>>> del a #delete the variable a>>> aTraceback (most recent call last):  File "", line 1, in NameError: name 'a' is not definedIf you are interested in learning Python consider taking Data Science with Python Course.
2 of 4
0
You can use the pop() method to remove specific elements of a list.EXAMPLE:a=[1,2,3,4,5,5]a.pop(2)OUTPUT:  3pop() method takes the index value as a parameter and removes the element at the specified index. Therefore, a[2] contains 3 and pop() removes and returns the same as output. You can also use negative index values.EXAMPLE:a=[1,2,3,4,5,5]a.pop(-1)OUTPUT:  5Hope it helps!!If you need to know more about Python, It's recommended to join Python course today.Thanks!
🌐
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 - Using the pop() method, we specified that the element at index 2 should be removed: names.pop(2).
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › filter
Array.prototype.filter() - JavaScript | MDN
The filter() method of Array instances creates a shallow copy of a portion of a given array, filtered down to just the elements from the given array that pass the test implemented by the provided function.
🌐
Reddit
reddit.com › r/learnpython › deleting element from list?
r/learnpython on Reddit: Deleting element from list?
January 18, 2018 -

Hey Guys,

when you're pop or remove to delete an element from a list, does python then resize the list in memory to account for the deleted item? Are all the items after the deleted items swapped one position back up? I'm a bit confused as to how the internal memory structure works for these dynamic arrays. Thanks guys.

🌐
W3Schools
w3schools.com › python › python_lists_remove.asp
Python - Remove List Items
Python Examples Python Compiler ... Study Plan Python Interview Q&A Python Bootcamp Python Training ... The remove() method removes the specified item....
🌐
Note.nkmk.me
note.nkmk.me › home › python › numpy
NumPy: Delete rows/columns from an array with np.delete()
February 5, 2024 - In NumPy, the np.delete() function allows you to delete specific rows, columns, and other elements from an array (ndarray). numpy.delete — NumPy v1.26 Manual Users must specify the target axis (dimen ...
🌐
GitHub
github.com › jwasham › coding-interview-university
GitHub - jwasham/coding-interview-university: A complete computer science study plan to become a software engineer. · GitHub
Will not implement. Implementing with the array is trivial ... a bad implementation using a linked list where you enqueue at the head and dequeue at the tail would be O(n) because you'd need the next to last element, causing a full traversal of each dequeue
Starred by 356K users
Forked by 84.2K users
🌐
Tutorialspoint
tutorialspoint.com › python › python_array_remove_method.htm
Python Array remove() Method
The Python array remove() method is used to remove the first occurrence of an element in the given array. If the element is not found in the array, we will get a ValueError Following is the syntax of the Python array remove() method − This method
🌐
Squash
squash.io › how-to-remove-an-element-from-a-list-by-index-in-python
How to Remove an Element from a List by Index in Python
November 2, 2023 - In the above example, the first occurrence of the element with value 30 is removed from the list using the 'remove()' method. The resulting list is [10, 20, 40, 50, 30]. List comprehension is a concise and useful way to manipulate lists in Python.