3 ms·Using the same format, sum((age > 17)*age for age in ages), perhaps.by zuminator 3y agoUsing the same format, sum((age > 17)*age for age in ages), perhaps.