結果 : check for invalid input python