[Solved] Write a function swap_halves(s) that takes a string s, and returns a new string in which the two halves of the string have been swapped



Write a function swap_halves(s) that takes a string s, and returns a new string in which the two halves of the string have been swapped

solved Write a function swap_halves(s) that takes a string s, and returns a new string in which the two halves of the string have been swapped