can this be written in one line without List Comprehensions?
for x in vec: if x > 3: ... ...
Yes
for x in filter(lambda i:i>3,vec):