結果 : how to write methods python