Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Ship Teams by tokiojapan55
def two_teams(sailors):
return [
sorted([name for name in sailors if 20 > sailors[name] or sailors[name] > 40]),
sorted([name for name in sailors if 20 <= sailors[name] <= 40])
]
June 18, 2021
Comments: