結果 : input validation loop in python with example