SyntaxFix
Write A Post
Hire A Developer
Questions
It's an iterator returned by the filter function.
If you want a list, just do
list(filter(f, range(2, 25)))
Nonetheless, you can just iterate over this object with a for loop.
for
for e in filter(f, range(2, 25)): do_stuff(e)