結果 : how to avoid runtime error in python