結果 : how to exit a if loop in python