Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: easy and straightforward solution in Clear category for The Ship Teams by przemyslaw.daniel
def two_teams(sailors):
second_ship = {name for name in sailors if 20 <= sailors[name] <= 40}
first_ship = set(sailors) - second_ship
return [sorted(first_ship), sorted(second_ship)]
Sept. 2, 2018
Comments: