3 ms·
You could do 6 like so for kicks (it's pretty horrible and writing a real partition function is easy neough): passed, failed = reduce(lambda r, g: r[g <= 6
by btmorex 15y ago
You could do 6 like so for kicks (it's pretty horrible and writing a real partition function is easy neough):
passed, failed = reduce(lambda r, g: r[g <= 60].append(g) or r, [49, 58, 76, 82, 88, 90], ([], []))