結果 : how to use range in if statement in python