結果 : how to write error messages in python