title: How to remove specific element from an array using python
body: <p>I want to write something that removes a specific element from an array. I know that I have to <code>for</code> loop through the array to find the element that matches the content. </p>
  
  <p>Let's say that I have an array of emails and I want to get rid of the element that matches some email string.</p>
  
  <p>I'd actually like to use the for loop structure because I need to use the same index for other arrays as well. </p>
  
  <p>Here is the code that I have:</p>
  
  <pre><code>for index, item in emails:
      if emails[index] == 'something@something.com':
           emails.pop(index)
           otherarray.pop(index)
  </code></pre>