Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Generator speedy solution in Speedy category for The Ship Teams by evarome10
def two_teams(sailors):
first_boat = []
second_boat = []
[second_boat.append(name) if 20 <= sailors[name] <= 40 else first_boat.append(name) for name in sailors]
return [sorted(first_boat), sorted(second_boat)]
Jan. 7, 2019