How to replace first letter of string in python July 8, 2019 16 32 64 128 How to replace text in python Given a string return a new string where the first and last chars have been exchanged Title in python