結果 : how to handle type error in python