Ad

:)

Code
Diff
  • def remove(integers, values):
        return list(filter(lambda x: x not in set(values), integers))
    • def remove(integers, values):
    • if not integers or not values or integers == [] or values == []: #dealing with invalid inputs
    • return []
    • for num in values:
    • while integers.count(num) > 0:
    • integers.remove(num)
    • return integers
    • return list(filter(lambda x: x not in set(values), integers))