結果 : how to write error message in python