In Python 2, filter() returns a list, but in Python 3, filter() returns an iterator, and iterators have no length.