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 inz2008
def two_teams(sailors):
return [sorted([sname for sname, age in sailors.items() if age > 40 or age < 20]),
sorted([sname for sname, age in sailors.items() if 20 <= age <= 40])]
Dec. 17, 2018
Comments: