for x in xs: if x: -> for x in filter(bool, xs)