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 ssk8
def two_teams(sailors):
crews = [[], []]
for sailor, age in sailors.items():
crews[40 >= age >= 20].append(sailor)
return [sorted(crew) for crew in crews]
Sept. 1, 2018
Comments: