title: Best way to remove elements from a list
body: <p>I would like to know what is the best way/efficient way to remove element(s) from the list.</p>
  
  <p>There are <a href="https://docs.python.org/3/tutorial/datastructures.html#more-on-lists" rel="noreferrer">few functions</a> provided by Python:</p>
  
  <ol>
  <li><code>some_list.remove(value)</code>, but it throws error if value is not found.</li>
  <li><code>some_list.pop(some_list[index])</code>, removes the item at the given position in the list, and return it.</li>
  <li><code>del (some_list[index])</code>, it removes element from the given index, it's different from pop as it doesn't return value.</li>
  </ol>
  
  <p>Scenarios:</p>
  
  <ul>
  <li>If you have few items to remove say one element or between 1 to 5.  </li>
  <li>If you have to remove multiple items in a sequence.</li>
  <li>If you have to remove different items based on a condition.</li>
  <li>How about if you have a list of lists and want to remove elements in sequence.</li>
  </ul>