結果 : function to reverse a word in python