title: Please help me to find the mistake in my code for Python 3 code challenge
body: <p>On Udemy there was this challenge where you have to remove a specific string from the list. In this challenge, it was &quot;spam&quot;. So here was the given List:</p>
  <pre><code>[
      [&quot;egg&quot;, &quot;bacon&quot;],
      [&quot;egg&quot;, &quot;sausage&quot;, &quot;bacon&quot;],
      [&quot;egg&quot;, &quot;spam&quot;],
      [&quot;egg&quot;, &quot;bacon&quot;, &quot;spam&quot;],
      [&quot;egg&quot;, &quot;bacon&quot;, &quot;sausage&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;bacon&quot;, &quot;sausage&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;sausage&quot;, &quot;spam&quot;, &quot;bacon&quot;, &quot;spam&quot;, &quot;tomato&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;egg&quot;, &quot;spam&quot;, &quot;spam&quot;, &quot;bacon&quot;, &quot;spam&quot;],
  ]
  </code></pre>
  <p>Below is the solution proposed by me:</p>
  <pre><code>menu = [
      [&quot;egg&quot;, &quot;bacon&quot;],
      [&quot;egg&quot;, &quot;sausage&quot;, &quot;bacon&quot;],
      [&quot;egg&quot;, &quot;spam&quot;],
      [&quot;egg&quot;, &quot;bacon&quot;, &quot;spam&quot;],
      [&quot;egg&quot;, &quot;bacon&quot;, &quot;sausage&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;bacon&quot;, &quot;sausage&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;sausage&quot;, &quot;spam&quot;, &quot;bacon&quot;, &quot;spam&quot;, &quot;tomato&quot;, &quot;spam&quot;],
      [&quot;spam&quot;, &quot;egg&quot;, &quot;spam&quot;, &quot;spam&quot;, &quot;bacon&quot;, &quot;spam&quot;],
  ]
  for meal in menu:
      for item in meal:
          if &quot;spam&quot; in item:
              meal.remove(&quot;spam&quot;)
      print(meal)
  </code></pre>
  <p>After the code is executed all &quot;spam&quot; is removed except the last one. I tried debugging and the removal of the last spam does get executed but not sure why it still shows in the output. Below is the output:</p>
  <pre><code>['egg', 'bacon']
  
  ['egg', 'sausage', 'bacon']
  
  ['egg']
  
  ['egg', 'bacon']
  
  ['egg', 'bacon', 'sausage']
  
  ['bacon', 'sausage']
  
  ['sausage', 'bacon', 'tomato']
  
  ['egg', 'bacon', '**spam**']
  </code></pre>
  <p>Can someone please help me to find the error? Or is this a bug?</p>