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 juestr
def two_teams(sailors):
r = [[], []]
for sailor, age in sailors.items():
r[20 <= age <= 40].append(sailor)
return list(map(sorted, r))
May 13, 2019
Comments: