結果 : how to write try except block in python