結果 : how to use range check in python