結果 : how to handle errors in python with example