❮ filter
❯
- filter
- grep
filter with lambda
examples/functional/filter.py
numbers = [1, 3, 27, 10, 38] big_numbers = filter(lambda n: n > 10, numbers) print(big_numbers) print(list(big_numbers))
<filter object at 0x7faed0fe57b8> [27, 38]