You could do this with a list comprehension, too. Generally "filter" is on the way out and "list comprehensions" are better tool to use.