Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
join() and replace() solution in Clear category for Right to Left by PawlakBartosz43
def left_join(phrases):
result = ",".join(phrases) #step one - let's join all words in the list and separate them with a comma
result = result.replace("right", "left") #step two - now that we have a single string, we can easily replace all instances of "right" with "left" with a single instruction
return result
Oct. 31, 2016