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 mikra
def two_teams(sailors):
second_ship = [x for x in sailors if 20 <= sailors[x] <= 40]
return [
sorted([x for x in sailors if x not in second_ship]),
sorted(second_ship)
]
April 9, 2019