title: Calling a function to search for an item then delete the item
body: <p>I'm adding a function called <code>remove_item</code> and within this function it'll call the <code>find_item</code> function which are both under a class. <code>find_item</code> is used to look for the item and if found it should be removed and return True once removed. Otherwise False.</p>
  <p>It can find the item but unable to remove it and I get
  ValueError: list.remove(x): x not in list</p>
  <p>I tried printing (self.all_toys.name) to see what it has and I get this:
  [&lt;<strong>main</strong>.Toy object at 0x00000231EA5C2350&gt;, &lt;<strong>main</strong>.Toy object at 0x00000231EA5C2320&gt;, &lt;<strong>main</strong>.Toy object at 0x00000231EA5C2290&gt;]</p>
  <p>Is this the reason why it can't find the value?</p>
  <p>I have a count function which works fine which should output the correct number of items after an item has been removed.</p>
  <pre><code>def find_item(self, find_name):
      for toy_name in self.all_items:
          if toy_name.name.lower() == find_name.lower():
              return toy_name
  
  def remove_item(self, remove):      
  
      if self.find_toy(remove):
          item_delete = remove
          self.all_toys.remove({item_delete})
  
          return 'True'
          
      else:
          return 'False'
  </code></pre>