結果 : how to write try catch block in python