diff --git a/d00/ex06/ft_filter.py b/d00/ex06/ft_filter.py index 22933e4..f90b2c9 100644 --- a/d00/ex06/ft_filter.py +++ b/d00/ex06/ft_filter.py @@ -5,7 +5,8 @@ def ft_filter(function, iterable): Return an iterator yielding those items of iterable for which function(item) is true. If function is None, return the items that are true.""" - # iter https://docs.python.org/3.10/library/functions.html?highlight=iter#iter + # iter + # https://docs.python.org/3.10/library/functions.html?highlight=iter#iter if function is None: return iter([item for item in iterable if item]) else: diff --git a/d00/ex06/tester.py b/d00/ex06/tester.py index 71022a8..6c89d25 100644 --- a/d00/ex06/tester.py +++ b/d00/ex06/tester.py @@ -16,4 +16,4 @@ print("- 3 filter :", list(filter(None, msg))) print(" ft_filter :", list(ft_filter(None, msg))) print("- 4 filter :", list(filter(str.isupper, msg))) -print(" ft_filter :", list(ft_filter(str.isupper, msg))) \ No newline at end of file +print(" ft_filter :", list(ft_filter(str.isupper, msg)))