結果 : python function to check whether a number is in a given range