However,
SELECT a1,a2,... FROM Table AS t WHERE Condition
[(t.a1,t.a2,...) for t in Table if Condition]
SELECT is also analogous to normal loops:
foreach t in Table if not Condition: continue # Use t.a1, t.a2 etc.
However,
is syntactically equivalent to Python list comprehension: Here the use of attributes (SELECT) is also written before the iterator.SELECT is also analogous to normal loops:
Here we first provide the loop specification while the usage of elements is written only in the body.