結果 : how to write exception handling in python