Python’s disdain for the industry standard is wild. Every other language made in the last 20 years has proper filtering that doesn’t require collecting the results back into a list after filtering like Java (granted it’s even more verbose in Java but that’s a low bar).
If Python had modern lambdas and filter was written in an inclusion or parametric polymorphic way, then you could write: