In Python 3, filter function return a filter object, which is a
generator-like object, it has no filter method.