3 ms·
Because what is happening I the list of ages is being transformed into a list of booleans where it's true if the age is greater than 17. This list of booleans
by scherlock 3y ago
Because what is happening I the list of ages is being transformed into a list of booleans where it's true if the age is greater than 17. This list of booleans is then turned into a list of integers where it's 1 if true, 0 if false. This list of integers is then being summed.