Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
if statement as index solution in Clear category for The Ship Teams by Merzix
def two_teams(sailors):
ans = [[], []]
for x,y in sorted(sailors.items()):
ans[20<=y<=40].append(x)
return ans
Sept. 26, 2018
Comments: