結果 : string function to reverse a string in python