結果 : how to write an error message in python