Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Ship Teams by _Chico_
def two_teams(sailors):
teams = [[], []]
for name, age in sailors.items():
teams[20 <= age <= 40].append(name)
result = [sorted(team) for team in teams]
return result
Aug. 23, 2021