Python has the standard methods for applying functions over iterables, viz. map, filter, and reduce.
For example, we can use filter to filter some numbers by some criterion:
even = lambda x: x % 2 is 0
odd = lambda x: not even(x)
data = [1, 2, 3, 4]