結果 : how to write a try catch block in python