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 thealfest1
def two_teams(sailors):
l1 = sorted([s[0] for s in sailors.items() if (s[1] > 40 or s[1] < 20)])
l2 = sorted([s[0] for s in sailors.items() if s[0] not in l1])
return [l1, l2]
Jan. 9, 2019
Comments: