結果 : how to add try and except in python