結果 : how to write methods in python