newlist = [x for x in initial_list if not predicate(x)]
      Python language logo

      Filter list

      Python public recipes

      Filter element of a list and creating a new list

      Shortcut: list.filter

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.