j
k
j a
j l
Or allow nested list comprehensions? [x for (x,y) in [x,f(x) for x in another_list] if y < 5]
Or allow nested list comprehensions?
[x for (x,y) in [x,f(x) for x in another_list] if y < 5]
This already works, with a syntax correction: [x for (x, y) in [(x, f(x)) for x in another_list] if y < 5] Regards
Back to the thread
Back to the list