Python list comprehension – want to avoid repeated evaluation March 12, 2023 by Tarik [y for y in (f(x) for x in l) if y] Will do.