Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
A simple solution solution in Clear category for The Ship Teams by vnkvstnk
def two_teams(sailors):
team_young = [name for name,age in sailors.items() if (age>=20) and (age<=40)]
team_old = [name for name in sailors.keys() if name not in team_young]
return [sorted(team_old), sorted(team_young)]
June 2, 2019
Comments: