Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
two lists solution in Clear category for The Ship Teams by Olpag
def two_teams(sailors):
yuong, expert = [], []
for name, age in sailors.items():
expert.append(name) if 20 <= age <= 40 else yuong.append(name)
return [
sorted(yuong),
sorted(expert)
]
March 4, 2019
Comments: