結果 : check if value is within range python