can this be written in one line without List Comprehensions?
for x in vec: if x > 3: ... ...
You can imagine somethings like this :
def do_something(value): ... def do_otherthing(value): ... for x in t: do_something(x) if x>3 else do_otherthing(x)