code: def remove_by(keys, original):
      
      for i in [
              original[index]
              for index, needed in enumerate(keys) if not needed
      ]:
          original.remove(i)
docs: Remove items in a list according to another list.