Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Right to Left by sanjarjavodov25
def left_join(phrases: tuple) -> str:
return ','.join(phrases).replace('right', 'left')
print("Example:")
print(left_join(("left", "right", "left", "stop")))
assert left_join(("left", "right", "left", "stop")) == "left,left,left,stop"
assert left_join(("bright aright", "ok")) == "bleft aleft,ok"
assert left_join(("brightness wright",)) == "bleftness wleft"
assert left_join(("enough", "jokes")) == "enough,jokes"
print("The mission is done! Click 'Check Solution' to earn rewards!")
Sept. 27, 2022
Comments: