結果 : python function restrict input values