Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Straightforward solution in Clear category for The Ship Teams by martin_b
def two_teams(sailors):
return [
sorted([s for s, a in sailors.items() if not 20 <= a <= 40]),
sorted([s for s, a in sailors.items() if 20 <= a <= 40]),
]
Feb. 1, 2020