Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Just divide them! solution in Clear category for The Ship Teams by obone
def two_teams(sailors):
return [
sorted([key for key, val in sailors.items() if val < 20 or 40 < val]),
sorted([key for key, val in sailors.items() if 20 <= val <= 40])
]
July 22, 2019