結果 : validate function in python