Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
basic solution in Clear category for Right to Left by coenensamy
def left_join(phrases: tuple[str]) -> str:
return ",".join(phrases).replace("right", "left")
print("Example:")
print(left_join(("left", "right", "left", "stop")))
# These "asserts" are used for self-checking
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!")
May 10, 2023