結果 : how to check if number is within range python