結果 : how to write a try catch in python