code: def removeEverything(toBeRemoved, l):
      '''Remove every instance that matches the input from a list
  
      Match with ==, operation, which can be defined in __eq__.
  
      Args:
          tobeRemoved (object): the same object you want to remove from the list.
          l (list): the llist you want to remove stuff from.
      '''
      successful = True
      while successful:
          try:
              # list.remove will remove item if equal,
              # which is evaluated by __eq__
              l.remove(toBeRemoved)
          except:
              successful = Falsf removeEverything(toBeRemoved, l):
      '''Remove every instance that matches the input from a list
  
      Match with ==, operation, which can be defined in __eq__.
  
      Args:
          tobeRemoved (object): the same object you want to remove from the list.
          l (list): the llist you want to remove stuff from.
      '''
      successful = True
      while successful:
          try:
              # list.remove will remove item if equal,
              # which is evaluated by __eq__
              l.remove(toBeRemoved)
          except:
              successful = False
docs: Remove every instance that matches the input from a list
  
      Match with ==, operation, which can be defined in __eq__.
  
      Args:
          tobeRemoved (object): the same object you want to remove from the list.
          l (list): the llist you want to remove stuff from.